C++ Programming :: Objects and Classes
-
Which of the following can access private data members or member functions of a class?
-
Which of the following type of data member can be shared by all instances of its class?
-
Which of the following also known as an instance of a class?
-
Constructor is executed when _____.
-
Which of the following statements about virtual base classes is correct?
-
What does the class definitions in following code represent?
class Bike { Engine objEng; }; class Engine { float CC; };
-
Which of the following statements is correct when a class is inherited privately?
-
Which of the following statements is correct?
-
What does a class hierarchy depict?
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 private members of derived class.
|
D.
Public members of the base class become public members of derived class.
|