destructor is called when object is code example
Example: c++ clas deconstructor
class Line {
public:
Line(); // This is the constructor declaration
~Line(); // This is the destructor: declaration
};
class Line {
public:
Line(); // This is the constructor declaration
~Line(); // This is the destructor: declaration
};