C++ Programming - Objects and Classes - Discussion

Discussion Forum : Objects and Classes - General Questions (Q.No. 3)
3.
Which of the following statement is correct regarding destructor of base class?
Destructor of base class should always be static.
Destructor of base class should always be virtual.
Destructor of base class should not be virtual.
Destructor of base class should always be private.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
15 comments Page 2 of 2.

GURIYA said:   1 decade ago
Because constructor is not contained Virtual method table in memory.

Divya Agrawal said:   10 years ago
But how destructor uses virtual? It is not getting.

Shalin said:   1 decade ago
Why constructor can not be created virtual?

Keerthana said:   1 decade ago
What happens if destructor is not virtual?

Ajay said:   1 decade ago
why we use concept of virtual?


Post your comments here:

Your comments will be displayed after verification.