C++
Select all ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
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.
Explanation
Constructors do not return values, have the same name as the class and can use the initializers lists.
class
constructors
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment