Select all ...
Site Language: English
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
Will the following code compile? If no - which lines will compilation errors occ...
What will be printed out as a result of the following program's execution? ...
What is the result of the following program's execution? ...
What will printed out by cout? #include <iostream>...
Which of the following should be true for pointers subtraction to make sense?...
What types of comments are available in C ++?...
Sign Up Now
Subscribe for future quizzes