Answer Posted / priyanka kokil
A virtual destructor is one that is declared as virtual in
the base class and is used to ensure that destructors are
called in the proper order. It is to be remembered that
destructors are called in the reverse order of inheritance.
If a base class pointer points to a derived class object
and we some time later use the delete operator to delete
the object, then the derived class destructor is not called.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is flush () in c++?
what you know about c++?
Does there exist any other function which can be used to convert an integer or a float to a string?
How does c++ sort work?
What is scope resolution operator in c++ with example?
What do you mean by translation unit in c++?
What is class and structure in c++?
How will you call C functions from C ++ and vice-versa?
What does ctime() do?
What are smart pointers?
What is iterator in c++?
Which is not a valid keyword a) public b) protected c) guarded
what are the decision making statements in C++? Explain if statement with an example?