Select all ...
Terms and Conditions
Select all the correct statements regarding the class constructor.
Constructor has the same name as the class does.
Constructor's name starts with the ~ symbol.
Constructor can have any name.
Constructor is defined in the exactly same way as a regular class method is
Constructor does not return a value.
Constructors do not return values, have the same name as the class and can use the initializers lists.
What is the difference between X x; and X x(); ?...
What will be printed out as a result of the following code's execution? ...
Can the class constructor be private?...
What will be printed out as a result of the following program execution? ...
What should be added to the class A for the program to compile successfully? ...
Login to learn C++
Read more about
Sign Up Now
Subscribe for future quizzes