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

Explain the difference between static and dynamic binding of functions?

650


Can we inherit constructor in c++?

668


What is the difference between a pointer and a link in c ++?

654


What is a syntax in c++?

718


Explain binary search.

682






Is it possible to provide default values while overloading a binary operator?

867


What is long in c++?

835


What are default parameters? How are they evaluated in c++ function?

764


How can you quickly find the number of elements stored in a dynamic array?

690


What is setfill c++?

791


Explain the differences between list x; & list x();.

682


What is wrapper class in c++?

706


What is a wchar_t in c++?

690


What is low level language in simple words?

641


Please explain the reference variable in c++?

701