19. Create a class Tester with two methods Prod(), it takes two integer arguments x,y and returns
the product of x, y and another method result() to print the product of 8, 2 and 10, 24 by
invoking or calling method Prod() two times.
Answers
Answered by
1
Explanation:
int z = add_int(x+y); - We are calling 'add_int' method by passing two integers 2 and 4. And this will return 'x+y' i.e. '2+4'. So, this statement
Similar questions
Social Sciences,
3 months ago
Hindi,
3 months ago
Political Science,
7 months ago
Biology,
7 months ago
Science,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago