Multiple Choice
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) dlass dClass: private bClass
{
// classMembersList
};
C) class dClass: protected bCla
{
// classMemberslist
};
D) class bClass: public dClass
{
// classMembersList
};
Correct Answer:

Verified
Correct Answer:
Verified
Q4: Which of the following is true about
Q5: In protected inheritance, public and protected members
Q6: Which of the following class definitions
Q7: What is the output of the
Q8: If the derived class classD overrides a
Q10: The new classes that we create from
Q11: _ is a "has-a" relationship.<br>A) Inheritance<br>B) Encapsulation<br>C)
Q12: Which of the following statements about inheritance
Q13: The _ members of an object form
Q14: C++ provides _ functions as a means