Balaji Gunasekar
Balaji Gunasekar answered question
It is the same.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.So constructor allocates memory for objects and … Read more
Balaji Gunasekar
Balaji Gunasekar answered
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.