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

Explain the difference between static and dynamic binding of functions?

0 Answers  


What do nonglobal variables default to a) auto b) register c) static

0 Answers  


given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().

2 Answers  


What is an html tag?

0 Answers  


Can you pass an array to a function in c++?

0 Answers  


5. Can inline functions have a recursion?

4 Answers  


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


What is the use of ‘using’ declaration?

1 Answers  


What are the advantages of using const reference arguments in a function?

0 Answers  


What is a smart pointer?

2 Answers  


You run a shell on unix system. How would you tell which shell are you running?

0 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


Categories