How many methods does an empty class have (C++11)?
It has 7 methods. There is a constructor, a destructor, a copy constructor, an assignment operation, an address-of operation and in C++11 were added two extra methods - a move constructor and a move assignment (if the object constructed/assigned via rvalue).

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes