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
Math,
4 months ago
Math,
4 months ago
Geography,
4 months ago
Political Science,
9 months ago
Biology,
9 months ago
Social Sciences,
1 year ago
Math,
1 year ago