Quote Originally Posted by manasij7479 View Post
> i am using constructors to access variables
What ? Do you mean initialize ?
You have to give short examples of the 'ways' you saw, to recieve any meaningful answer.

Destructors, as their name says, destroy.
Suppose you have a 'human' object.
When the human dies, a lot of work has to be done.. (funeral, death certificate ..etc !).
It is the destructor's responsibility to do that cleanup work.

Also get familiar with the "Rule of Three", while you're at it.

Termonology at this stage is not my strong suit, i'm not sure i can give you a clear example of what i am trying to say, also, can you please explain why i have to be firmiliar with the "rule of three"?