Hello Guys,
I am a beginner of C++. I am being confused about the Constructor, destructor and default constructor.
When and How Do I will understand that I have to add a constructor, destructor and default constructor ?
I know its depends on the problems. Is there any general ideas ? I read couple of tutorials but did not get it.
Is it like every time I create a object I have to have a constructor and destructor ?
Hope you guys will give me some ideas.
Thanks
I am a beginner of C++. I am being confused about the Constructor, destructor and default constructor.
When and How Do I will understand that I have to add a constructor, destructor and default constructor ?
I know its depends on the problems. Is there any general ideas ? I read couple of tutorials but did not get it.
Is it like every time I create a object I have to have a constructor and destructor ?
Hope you guys will give me some ideas.
Thanks