Computer Science, asked by dhrity88, 1 month ago

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 ajb7899
0

Answer:

Isn't the solution too long

Similar questions