C++ Programming :: Objects and Classes
-
What happens when we try to compile the class definition in following code snippet?
class Birds {}; class Peacock : protected Birds {};
-
Which of the following statements is incorrect?
-
Which of the following statement is correct regarding destructor of base class?
-
Which of the following two entities (reading from Left to Right) can be connected by the dot operator?
-
How can we make a class abstract?
-
Which of the following statements is correct when a class is inherited publicly?
-
Which of the following statements is correct about the constructors and destructors?
-
Which of the following access specifies is used in a class definition by default?
-
Which of the following statement is correct with respect to the use of friend keyword inside a class?
-
Which of the following keywords is used to control access to a class member?
A.
Public members of the base class become protected members of derived class.
|
B.
Public members of the base class become private members of derived class.
|
C.
Private members of the base class become protected members of derived class.
|
D.
Public members of the base class become public members of derived class.
|