Computer Applications
Write the prototype of a function check which takes a String and a character as an argument and returns a boolean.
User Defined Methods
6 Likes
Answer
boolean check(String str, char ch)
Answered By
4 Likes
Related Questions
Define a class to overload the method perform as follows:
double perform (double r, double h) — to calculate and return the value of curved surface area of cone
void perform (int r, int c) — Use NESTED FOR LOOP to generate the following format
r = 4, c = 5
output
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5void perform (int m, int n, char ch) — to print the quotient of the division of m and n if ch is Q else print the remainder of the division of m and n if ch is R
Method which reverses a given number is:
- Impure method
- Pure method
- Constructor
- Destructor