Concept of Constructor and Destructor:
- Constructors execute automatically on making of class object, but method have to be called separately.
- Constructors have no return type.
- Constructor have same name as class name
Arguments in Constructors:
Destructors are also same as constructors as they have same name as class, no return type and execute automatically, but destructor execute when the class or program is closing, it execute right before the closing, so we put that code in it which we want to execute before closing. Tilda(~) is put before to make destructor