-
-
-
-
-
Virtual key word
can access any private member of the base class through the derived class FUNCTION IF IT IS VIRTUAL?
-
-
Exception handling vs. return values to signal an error
Why we would use exception handling rather than different return values to signal an error?
-
-
Default Parameter
What is default parameter? Can a overloaded function have a default parameter?
-
Unary Postfix Operator Overloading
Which of the following statements accurately describe unary postfix operator++ overloading in C++?A. It can be overloaded with no parameters when the operator function is a class member.B. It can only be overloaded if the operator function is a class member.C. It can be overloaded with one parameter when the operator function is free standing function (not a class member).D. To overload it at least...
-
Function Resolution
Explain the resolution of a function by C ++ complier in the case of function overloading.
-
Private Members
How can we access private members of classs?
-
Bottom-Up Approach
Why we follow top down approach in C-language and bottom up approach in C++?Explain in detail.
-
Classes
Why should you generally pass an object of the class to a friend function as a reference parameter?Choose one answer. a. if the friend function changes the values of the data member(s) b. if the friend function will not change the values of the data member(s) c. It is more efficient to pass the object by reference. d. A and B e. A and C
-
Ans