in java Design a class to overload a function calculate() as follows:
void calculate(int m, char ch) with one integer argument and one character argument. It
checks whether the integer argument is divisible by 7 or not, if ch is 's', otherwise, it checks whether the last digit of the integer argument is 7 or not.
void calculate(int a, int b, char ch) with two integer arguments and one character
argument. It displays the greater of integer arguments if ch is 'g' otherwise, it displays the smaller of integer arguments.
Write a main() method to call the above member methods with suitable inputs
Answers
Answered by
0
Explanation:
the main part 30
Last part is 880
total answers is 560
Similar questions