When you declare a derived class object, this object inherits the members of the base class, but the derived class object cannot directly access the ____.
A) private data members of the base class
B) data members in its own class
C) base class constructors
D) public data members of the base class
Correct Answer:
Verified
Q17: Just as variables are parameters to functions,
Q18: In single inheritance, the derived class is
Q19: If there are three classes, shape, circle,
Q20: If class dog has a derived class
Q21: We need to ensure that the private
Q23: A(n) _ typically serves to initialize the
Q24: A call to the base class constructor
Q25: If a class contains the default constructor
Q26: To define new classes, you create new
Q27: The definitions of member functions can be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents