Back to Browse

Function overloading | java | ICSE | ISC | CLASS 10 | class 11

296 views
Jun 17, 2020
12:38

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 * */ questions 2 void reverse( char ch) it convert a character in opposite case void reverse ( int num) to reverse the number void reverse ( String str) to reverse the string

Download

1 formats

Video Formats

360pmp436.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Function overloading | java | ICSE | ISC | CLASS 10 | class 11 | NatokHD