Which of the following gets called when an object is being created?
A. constructor
B. virtual function
C. destructor
D. main
Submitted by: MuhammadOption A
constructor
Submitted by: Muhammad
constructor
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. |