What about Virtual Destructor?



What about Virtual Destructor? ..

Answer / guest

Virtual Destructor can be called at runtime and respected
destructor function will be called depending upon the type
of object calling to.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C++ General Interview Questions

How we can differentiate between a pre and post increment operators during overloading?

0 Answers  


Is c++ still being used?

0 Answers  


What language does google use?

0 Answers  


What is null c++?

0 Answers  


class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.

2 Answers   Quark,






If you want to share several functions or variables in several files maitaining the consistency how would you share it?

0 Answers  


implement stack using stack.h headerfile functions

1 Answers   Exilant, GMG, Subex, University,


What's the best free c++ profiler for windows?

0 Answers  


What is the basic structure of c++ program?

0 Answers  


What is iterator in c++?

0 Answers  


what is the use of Namespace in c++.

3 Answers  


How are the features of c++ different from c?

0 Answers  


Categories