Solved

Which of the Following Statements Is True

Question 49

Multiple Choice

Which of the following statements is true?


A) A class with multiple base classes can inherit constructors from any of its base classes.
B) If a class inherits constructors with the same signature from two or more base classes, then the derived class must define its own version of that constructor; otherwise, a compilation error occurs.
C) When a derived class is inheriting constructors from a base class and explicitly defines a constructor, if a default constructor is needed, the derived class must define a default constructor either by using = default to tell the compiler to generate the default constructor or by explicitly defining a constructor that can be called with no arguments.
D) All of the above.

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