I need to write copy constructor that will write "Copy constructor" on screen when I try to assign integer to my class object. I know that MyClass A=3 will call constructor with one parameter, but I don't know how to write copy constructor that will be called instead
Aucun commentaire:
Enregistrer un commentaire