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 class and object in C++?

1 Answers  


Explain the use of this pointer?

0 Answers  


Do you know what are pure virtual functions?

0 Answers  


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

0 Answers  


Can we use pointers in c++?

0 Answers  


Is c++ the hardest language?

0 Answers  


Describe the main characteristics of static functions?

1 Answers  


Write about an iterator class?

0 Answers  


What is prototype for that c string function?

0 Answers  


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

0 Answers  


what are the events occur in intr activated on interrupt vector table

0 Answers   HGS,


What can I use instead of namespace std?

0 Answers  


Categories