✔ C++ CHAPTERS:-
1. CPP-Introduction
2. CPP-OOPs Concepts
3. CPP-Statements
4. CPP-Programming Examples
5. CPP-Operators
6. CPP-Functions
7. CPP-Classes & Objects
8. CPP-Array Of Objects
9. CPP-Constructors
10. CPP-Destructors
11. CPP-Inheritance
12. CPP-Multiple Inheritance
13. CPP Hierarchical Inheritance
14. CPP-Important Points
1. CPP-Introduction
2. CPP-OOPs Concepts
3. CPP-Statements
4. CPP-Programming Examples
5. CPP-Operators
6. CPP-Functions
7. CPP-Classes & Objects
8. CPP-Array Of Objects
9. CPP-Constructors
10. CPP-Destructors
11. CPP-Inheritance
12. CPP-Multiple Inheritance
13. CPP Hierarchical Inheritance
14. CPP-Important Points
CPP Constructors: Previous Next: CPP Inheritance
Destructor is used to remove the constructor from memory. It is called at the time of deallocation of constructor. Destructor have same properties /charactertics that constructor have except the look. Destructor contains tild sign(~) placed before name of it. It releases memory space for future. Example:
Destructor is used to remove the constructor from memory. It is called at the time of deallocation of constructor. Destructor have same properties /charactertics that constructor have except the look. Destructor contains tild sign(~) placed before name of it. It releases memory space for future. Example:
#include
class Sum
{
public :
Sum()
{
cout<<”constructor called “:
}
~Sum()
{
cout<<”destructor called”;
}
}:
void main()
{
Sum s1;