June 24, 2019
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
A destructor has the same name as the class in which it is present.
A destructor has a different name than the class in which it is present.
A destructor always returns an integer.
A destructor can be overloaded.
Both A and B
None of these
Copy Constructor always required a reference of the same object. So if it is not having any parameter then it cant be copy constructor.
So it is the default constructor that bears the values.
It is used to provide multiple inheritances.
It is used to avoid multiple copies of the base class in derived class.
It is used to allow multiple copies of the base class in a derived class.
It allows private members of the base class to be inherited in the derived class.
Virtual base classes are used in virtual inheritance in a way of preventing multiple “instances” of a given class appearing in an inheritance hierarchy when using multiple inheritances.
The trailing argument will be the default argument.
The first argument will be the default argument.
The middle argument will be the default argument.
All the argument will be the default argument.
int Sum(int a, int b = 2, int c = 3);
int Sum(int a = 5, int b);
int Sum(int a = 0, int b, int c = 3);
Both B and C are incorrect.
All are correct.
The default value for an argument can be a global constant.
The default arguments are given in the function prototype.
The compiler uses the prototype information to build a call, not the function definition.
The default arguments are given in the function prototype and should be repeated in the function definition.
30 10 20
Garbage 10 20
40 50 20
20 40 50
40 Garbage Garbage
Please login to report
Login/Signup to comment