GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  C++

 Print  |  
Question:  what is defference between constructor and destructor




April 04, 2006 05:30:44 #3
 nitin_chawda   Member Since: April 2006    Total Comments: 4 

RE: what is defference between constructor and destruc...
 

constructor is the memeber function of the class which has the same name as that of class and it is invoked whenever the class object is instantiated.

destructor is also the member function  of same class name and has ~ operator when ever declared in the function and it is used to destruct the object which has been constructed ,whenever we want to destroy it..

     

 

Back To Question