Anonymous

What Are The Differences Between Constructors And Destructors?

3

3 Answers

Anonymous Profile
Anonymous answered
Constructors can take arguments but destructor can't Constructors can be overloaded but destructors
     can't be overloaded
Both
None of these
Balaji Gunasekar Profile
The basic difference between constructor and destructor is constructor is called in the beginning of the program whereas the destructor is called at the end of the program.The former allocates memory whereas the later removes the memory.Constructor can be overloaded whereas the destructor cannot be overloaded.
Anonymous Profile
Anonymous answered
The constructor and destruct or is the member function and the constructor is used to construct the memory or allocate the memory for the variable where as the destructor is use to de allocate the memory

Answer Question

Anonymous