Is there way to prevent defining user defined destructor of Derived class
I hope developers can't define user defined destructor of derived class of Class I made. My class supports some functions and users can utilize my class functions inheriting my class.
But defining custom destructor in derived class is dangerous, so I hope derived class has only default destructor.
I think I should make some macros about defining class, but I can't know how to. Or compile time make error when derived class has user defined destructor. (But I don't know how to do this)
Aucun commentaire:
Enregistrer un commentaire