Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass?
A) class dClass:: public bClass
{
//classMembersList
};
B) class dClass: private bClass
{
//classMembersList
};
C) class dClass:: protected bClass
{
//classMembersList
};
D) class bClass: public dClass
{
//classMembersList
};
Correct Answer:
Verified
Q7: Classes can create new classes from existing
Q10: In protected inheritance, public and protected members
Q11: A derived class cannot directly access public
Q12: If the derived class does not override
Q13: The new classes that we create from
Q18: Consider the following class definition: The class
Q22: The _ members of an object form
Q28: In _ (aggregation), one or more members
Q30: The constructor of a derived class cannot
Q31: If the corresponding functions in the base
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