mardi 28 juillet 2015

Are synthesized copy control members always public?

When we don't define any constructors, the compiler synthesizes a default constructor for us. And the compiler will always synthesize the copy constructor, copy assignment and destructor if we don't define them ourselves. I want to know if the synthesized copy control members are always public? Or is there any way to control the access of these synthesized members?

Aucun commentaire:

Enregistrer un commentaire