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
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is overloading in oop?
What are main features of oop?
What is abstraction in oop with example?
What is the difference between abstraction and polymorphism?
What are functions in oop?
What is property in oops?
What are the 5 oop principles?
Why interface is used?
Write a program to reverse a string using recursive function?
What is oops in simple words?
What is the difference between inheritance and polymorphism?
Please send ford technologies placement paper 2 my mail id
What are the three main types of variables?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?