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
What are put and get pointers?
Explain the operation of overloading of an assignment operator.
How do I use arrays in c++?
What is the difference between a declaration and a definition?
How many types of comments are there in c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is a Default constructor?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Explain what are the sizes and ranges of the basic c++ data types?
Who discovered c++?
Can user-defined object be declared as static data member of another class?
What return value must conversion operators have in their declaration?
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.
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Are strings immutable in c++?