PURPOSE 
Constructor is Used to Initialize the Object. 
OR 
Constructor is used to initialize the instance of a class. 
Destructor is used to destroy the object that are created in memory 
Previously. 
OR 
Destructor destroys the objects when they are no longer needed.
Constructor is Called when new instance of a class is created. 
Destructor is called when instance of a class is deleted or released. 
Constructor allocates the memory. 
Destructor releases the memory.
Constructors can have arguments. 
OR 
Constructor can takes arguments. 
Destructor can not take any arguments. 
OR 
Destructor can not have any arguments.
Overloading of constructor is possible. 
OR 
 Constructor overloading can be possible means more 
than one constructors can be defined in same class. 
Overloading of Destructor is not possible. 
OR 
Destructor overloading can not be possible.
For constructor--- 
ClassName(Arguments) 
{ 
//Body of Constructor 
} 
For destructor--- 
~ ClassName() 
{ 
}
CREATED BY APARAJEETA SALU

Difference between Constructure and destructure.

  • 2.
    PURPOSE Constructor isUsed to Initialize the Object. OR Constructor is used to initialize the instance of a class. Destructor is used to destroy the object that are created in memory Previously. OR Destructor destroys the objects when they are no longer needed.
  • 3.
    Constructor is Calledwhen new instance of a class is created. Destructor is called when instance of a class is deleted or released. Constructor allocates the memory. Destructor releases the memory.
  • 4.
    Constructors can havearguments. OR Constructor can takes arguments. Destructor can not take any arguments. OR Destructor can not have any arguments.
  • 5.
    Overloading of constructoris possible. OR  Constructor overloading can be possible means more than one constructors can be defined in same class. Overloading of Destructor is not possible. OR Destructor overloading can not be possible.
  • 7.
    For constructor--- ClassName(Arguments) { //Body of Constructor } For destructor--- ~ ClassName() { }
  • 8.