Which of the following statement is correct?
A. A constructor of a derived class can access any public and protected member of the base class.
B. Constructor cannot be inherited but the derived class can call them.
C. A constructor of a derived class cannot access any public and protected member of the base class.
D. Both A and B.
Submitted by: MuhammadOption D
Both A and B.
Submitted by: Muhammad
Both A and B.
Submitted by: Muhammad
Read Online C++ Constructors Job Interview Questions And Answers
Top C++ Constructors Questions
☺ | Which of the following are NOT provided by the compiler by default? |
☺ | If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor? |
☺ | Constructors __________ to allow different approaches of object construction. |
☺ | What is shallow? |
☺ | It is a __________ error to pass arguments to a destructor. |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Template Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |