0
What are constructors and destructors ?
3 ответов
+ 2
Constructor and destructor are special methods.
Constructor is called at the creation of an object. Used to construct the object.
Destructor is called at the deletion of an object. Used to delete the object.
(C has no constructer or destructor since it doesn't have a class).