0
For a class MyFancyClass { }; what default methods will the compiler generate?
2 Réponses
0
a constructor? maybe.
but you wouldnt be able to do anything with that object if you did create it. it doesnt have any member variables or functions, its basically useless...
0
in c++ the four followings are automatically generated by the compiler if needed and not listed in the class declaration: default constructor, copy constructor, destructor, copy assignment operator
in c++11 and newer there are additional the move condtructor and move assignment operator which are automatically generated