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
i got a backdoor offer in process global,Bangalore..Can i work with it?
How do you explain polymorphism?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is an example of genetic polymorphism?
What is polymorphism and types?
What are the benefits of oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is abstraction with example?
What is object in oop?
Why is static class not inherited?
What is encapsulation with real life example?
What is destructor oops?
Write a program to sort the number with different sorts in one program ??
What is multilevel inheritance in oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer