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

Is it possible to pass an object of the same class in place of object reference to the copy constructor?

0 Answers  


Why would you use pointers in c++?

0 Answers  


What is flush c++?

0 Answers  


To which numbering system can the binary number 1101100100111100 be easily converted to?

0 Answers  


What is a .h file c++?

0 Answers  


How do you allocate and deallocate memory in C++?

1 Answers  


Where must the declaration of a friend function appear?

0 Answers  


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

0 Answers  


What is the Maximum Size that an Array can hold?

55 Answers   Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,


What is the difference between static global and global ?

2 Answers   CA,


What is the use of map in c++?

0 Answers  


Differentiate between structure and class in c++.

0 Answers  


Categories