In c++ there is only virtual destructors, no constructors. Why?
Answer Posted / jos collin
The VTable is created at compile-time itself. But properly
initialized at runtime, including vptr.
Virtual Mechanism is possible only with completely
constructed objects. The constructor is called when the
object is not created completely, it is not allowed.
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is the difference between a constructor and a destructor?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why multiple inheritance is not allowed?
What are oops functions?
How to use CMutex, CSemaphore in VC++ MFC
how to get the oracle certification? send me the answer
what is different between oops and c++
What is the significance of classes in oop?
What is overloading in oops?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is an advantage of polymorphism?
What is the main feature of oop?
What are two types of polymorphism?
which feature are not hold visual basic of oop?
How do you use inheritance in unity?