Which is the correct way to tell the compiler that the class being declared ChildClass) is derived from the base class BaseClass) ?
A) class ChildClass::public BaseClass
B) class ChildClass:public BaseClass
C) class ChildClass childOf public BaseClass
D) class ChildClass derived BaseClass
Correct Answer:
Verified
Q23: If you define a function in the
Q24: If a base class has public member
Q25: If a base class has declared a
Q26: What is another name for a child
Q27: A base class may have at most
Q29: Which of the following are not true
A)
Q30: C++ implements polymorphism by waiting until run-time
Q31: Using virtual functions is also known as
Q32: A base class pointer variable can point
Q33: Give a base class with at least
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