Which of the following is true about inheritance?
A) All public member functions of the base class become the public member functions of the derived class.
B) All public member variables of the base class become the public member variables of the derived class.
C) All public members of the base class become the public members of the derived class.
D) The public member variables of the base class become the public or private member variables of the derived class.
Correct Answer:
Verified
Q2: Consider the following class definition:
Q3: The constructors of a derived class can
Q4: Existing classes, from which you create new
Q5: A derived class can directly access the
Q6: The private members of a base class
Q7: Classes can create new classes from existing
Q8: A call to the base class's constructor
Q9: The class io is the base class
Q10: In protected inheritance, public and protected members
Q11: A derived class cannot directly access public
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