O
Q. In the below example of constructor overloading, the following statement will call which constructor Example obj = new Example (1,2,3);
class Example{ public: int a,b,c; Example(){a=b=c=1;} //Constructor 1 Example(int a){a = a; b = c = 1;} //Constructor 2 Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3 Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor 4 }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What handler do we use if we want to handle all the types of exceptions?
Q. Logical AND (&&) and Logical OR (||) are ___ operators.
Q. ____ is a variable that holds a memory address.
Q. Functions called from within a try block may also throw exception.
Q. Which of the following C++ code will give error on compilation?
Q. Which of the following are NOT provided by the compiler by default?
Q. What should be the output of below program?
Q. If multiple inheritance is implemented, which upcasting will be correct?
Q. The class that derived from standard library ios contain input functions
Discusssion
Login to discuss.