Computer Science, asked by Anonymous, 8 months ago

what are constructor and destructor
class 12
please give 30 thanks please make it reach 500​

Answers

Answered by 217him217
2

Explanation:

Constructor name is same as Class name.

Destructor delete the objects.

A constructor is generally used to initialize the data members of the class. They usually initialize the data members of the new object,

whereas a destructor is used to let the object perform some action before it is destroyed.

Similar questions