Computer Science, asked by Anonymous, 7 months ago

Design a class to overload a function num_calc() as follows: void num_calc(int num1,int num2) with two integer arguments. It prints the largest of the two integers. void num_calc(int num,char ch) with one integer argument and one character argument. It computes the square of the integer argument if the character ch is ’s’ otherwise finds its cube. 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.

Answers

Answered by nasreen22
4

Answer:

Hope it would help you

Attachments:
Similar questions