Computer Science, asked by neelndesai, 10 months ago

Design a class to overload a function num_calc() as follows:

void num_calc(int num, char ch) with one integer argument and one char
argument, computes the square of integer argument if choice ch is 's'
otherwise find its cube.

void num_calc(int a, int b, char ch) with two integer arguments and
character argument. It computes the product of integer arguments if ch
is 'p' else adds the integers.

void num_calc(String s1, String s2) with two string arguments, which
prints whether the strings are equal or not.
in java only
spam answer willl be reported

Answers

Answered by sneharekhi14
59

hope it HELPS

hope it HELPSplzzzz mark as BRAINLIEST

Attachments:
Answered by harnathyadav2907
11

Explanation:

I hope it will helps you

Attachments:
Similar questions