Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a constructor and a destructor in C++?



What is the difference between a constructor and a destructor in C++?..

Answer / nashiinformaticssolutions

While a destructor is used to remove class objects, a constructor aids in initializing them. Both are invoked automatically: the constructor allocates memory instantly upon creating a new object, and the destructor deals with memory when destroying an existing one.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the important differences between c++ and java?

0 Answers  


the first character in the variable name must be an a) special symbol b) number c) alphabet

0 Answers  


You want to link a c++ program to c functions. How would you do it?

0 Answers  


What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,


What is setbase c++?

0 Answers  


What size is allocated to the union variable?

0 Answers  


When is a template better solution than a base class??

2 Answers   emc2,


Can we run c program in turbo c++?

0 Answers  


Show the declaration for a static member variable.

0 Answers  


What is difference between shallow copy and deep copy? Which is default?

1 Answers  


founder of c++

7 Answers   Microtek, TCS, TeleCommand,


How do you establish an is-a relationship?

0 Answers  


Categories