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 a superclass in oop?
What are the components of marker interface?
What are the 4 pillars of oop?
What is static modifier?
What is class encapsulation?
c++ program to swap the objects of two different classes
What are oops methods?
What is oops concept with example?
officer say me - i am offered to a smoking , then what can you say
How to use CMutex, CSemaphore in VC++ MFC
What is an interface in oop?
Explain virtual inheritance?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is a class oop?