Solved

Which of the Following Statements About Inheriting Base Class Constructors

Question 15

Multiple Choice

Which of the following statements about inheriting base class constructors is false?


A) To inherit a base class's constructors, you write the following line of code in the derived class definition (BaseClass is the base class's name) :
Using BaseClass::BaseClass;
B) If an inherited base-class constructor has default arguments, the line of code in Part (a) causes the compiler to generate a derived-class constructor with the same default arguments.
C) By default, each inherited constructor has the same access level (public, protected or private) as its corresponding base-class constructor.
D) If the derived class does not explicitly define constructors, the compiler generates a default constructor in the derived class-even if it inherits other constructors from its base class.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents