Can we have "Virtual Constructors"?

Answer Posted / barun

The pointer to Virtual table which keeps the pointer of
Virtual functions is created within constructor. It means
virtual table is created after constructor is called.So,
there won't be any virtual constructor.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between a homogeneous and a heterogeneous container

663


What does the nocreate and noreplace flag ensure when they are used for opening a file?

681


What is pair in c++?

630


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

648


What is c++ course?

586






What is a Default constructor?

924


What is data structure in c++?

663


Which one is a preferred language C or C++? Why?

622


Difference between pointer to constant and constant pointer to a constant. Give example.

652


What is flush c++?

541


How do you declare A pointer to a function which receives nothing and returns nothing

725


Is c# written in c++?

526


How do I run c++?

576


Explain explicit container.

633


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

620