Which of the following class definitions makes the public members of the class aClass become the public members of the class bClass?
A) class aClass: public bClass
{
//) ..
};
B) class bClass: public aClass
{
//) ..
};
C) class bClass: aClass
{
//) ..
};
D) class aClass: bClass
{
//) ..
};
Correct Answer:
Verified
Q1: Which of the following is true about
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
Q9: The class io is the base class
Q9: Which of the following is a valid
Q15: Inheritance is an example of a(n) _
Q16: In multiple inheritance, the derived class has
Q19: _ is a "has-a" relationship.
A) Inheritance
B) Encapsulation
C)
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