Home > DeveloperSection > Forums > how to destroy constructor in c
Babe Zaharias
Babe Zaharias

Total Post:19

Points:133
Posted on    June-13-2013 7:13 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 800  View(s)
Rate this:
Hi Developers,

How to destroy constructor explicit in C++? Please provide line of code.

Thanks in advance.





AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-14-2013 2:03 AM

Try as following

class myclass{
public:
myclass( );
};
myclass:: ~myclass( )
{
cout<<"Distructing.......\n";
}

Don't want to miss updates? Please click the below button!

Follow MindStick