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


Please Help Members By Posting Answers For Below Questions

What is interface? When and where is it used?

1656


Can an interface inherit a class?

551


Who invented oop?

644


What is encapsulation in simple terms?

532


Advantage and disadvantage of routing in telecom sector

780






What is the purpose of polymorphism?

668


What is cohesion in oop?

608


What do you mean by variable?

567


Why is encapsulation used?

569


Whats oop mean?

583


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1826


What is meant by multiple inheritance?

729


write a programe to calculate the simple intrest and compund intrest using by function overlading

1658


What is purpose of inheritance?

637


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.

1776