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...

How do you know that your class needs a virtual destructor?

Answer Posted / melos

If the class will be derived from and it will need a virtual
destructor so that the destructor of the derived class will
be invoked if it referenced using the pointer to the base class.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are put and get pointers?

1065


Explain the operation of overloading of an assignment operator.

1106


How do I use arrays in c++?

947


What is the difference between a declaration and a definition?

1040


How many types of comments are there in c++?

941


Evaulate: 22%5 a) 2 b) 4 c) 0

1035


What is a Default constructor?

1499


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2273


Explain what are the sizes and ranges of the basic c++ data types?

1111


Who discovered c++?

984


Can user-defined object be declared as static data member of another class?

966


What return value must conversion operators have in their declaration?

1028


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2525


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1466


Are strings immutable in c++?

1113