2. Write a class to overload a function num calco as follows:
i) void num_calc(int num. char ch) with one integer argument and one character
argument, computes the square of integer argument if choice ch is 's otherwise finds its
cube.
ii) void num_calcíint a. int b, char ch) with two integer arguments and one character
argument. It computes the product of integer arguments if ch is p' else adds the integers
iii) void num calc(String sl. String s2) with two string arguments, which prints whether
the strings are equal or not
Answers
Answered by
0
Answer:
Isn't the solution too long
Similar questions
Math,
28 days ago
English,
1 month ago
English,
9 months ago
Computer Science,
9 months ago
Hindi,
9 months ago