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




July 07, 2007 03:40:01 #4
 jyotsna   Member Since: Visitor    Total Comments: N/A 

RE: what is defference between constructor and destruc...
 
Constructor is a member of the class. Constructor is cerated automatically when class is called. Using construtor we can allocate memory.

Destructor is used for deallocate(release) the memory.
     

 

Back To Question