programplug Logo




C++ Destructor


A destructor is opposite to constructor.Destructor destructs the objects of classes.Sign (~) is used for representing destructor.


#include 
class Home  
 {  
   public:  
	Home()    
	{    
		cout << "This Is Constructor " << endl;    
	}    
	~Home()    
	{    
		cout<< "This Is Destructor " << endl;    
	}  
};  
void main()   
{  
	Home e1;   
	Home e2;   
}   

output:
This Is Constructor
This Is Destructor







Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
000000000

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy