Computer Science, asked by manaschaubal, 2 months ago

What is constructer and destructor in c++?

Answers

Answered by pandeysanjay1357
1

Answer:

Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created.

Whereas, Destructor on the other hand is used to destroy the class object.

Answered by sanikavajire67
0

Explanation:

Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. ... Whereas, Destructor on the other hand is used to destroy the class object.

Similar questions