InterviewSolution
Saved Bookmarks
| 1. |
Design a class to overload a function num_calc() as follows: 7. void num_calc(int num, char ch) — with one integer argument and one character argument,iTo store the amount to be paid.doubleрcomputes the square of integer argument if choice ch is 's' otherwise finds its cube.void num_calc(int a, int b, char ch) - with two integer arguments and one characterargument. 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 whetherthe strings are equal or not.blic class Overload output of this program |
| Answer» SEARCH in GoogleExplanation:I THINK you UNDERSTOOD | |