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 interface? When and where is it used?
Can an interface inherit a class?
Who invented oop?
What is encapsulation in simple terms?
Advantage and disadvantage of routing in telecom sector
What is the purpose of polymorphism?
What is cohesion in oop?
What do you mean by variable?
Why is encapsulation used?
Whats oop mean?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is meant by multiple inheritance?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is purpose of inheritance?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.