Computer Applications
Give the prototype of a function check which receives a character ch and an integer n and returns true or false.
User Defined Methods
ICSE 2010
23 Likes
Answer
boolean check(char ch, int n)
Answered By
15 Likes
Related Questions
Invoking a method by passing the objects of a class is termed as:
- Call by reference
- Call by value
- Call by method
- Call by constructor
Define a class to overload the method display() as follows:
void display(): To print the following format using nested loop.
1 2 1 2 1
1 2 1 2 1
1 2 1 2 1void display (int n, int m) : To print the quotient of the division of m and n if m is greater than n otherwise print the sum of twice n and thrice m.
double display (double a, double b, double c) — to print the value of z where