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




March 03, 2006 00:00:26 #2
 priya   Member Since: Visitor    Total Comments: N/A 

RE: what is defference between constructor and destruc...
 
constructor: it is used to construct the object of the class.it is called when object of the first class is instansiated.destructor: it is used while destroying the object.it is called automatically when close braces is encontered.
     

 

Back To Question