What is virtual constructor paradigm?

Answer Posted / priyanka kokil

I want to modify the above answer. A constructor cannot be
virtual because at the time when the constructor is invoked
the virtual table would not be available in the memory.
Hence we cannot have a virtual constructor. But we can have
virtual destructor which is defined in Answer #2

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of templates in c++?

559


What is basic if statement syntax?

557


Differentiate between declaration and definition.

577


What is the type of this pointer in c++?

622


What is set in c++?

651






What are the c++ access specifiers?

759


What is searching?

638


what is pre-processor in C++?

583


Is c++ a high level language?

542


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

598


What is a namespace in c++?

590


Do you know what are static and dynamic type checking?

610


Why was c++ created?

535


Is c++ built on c?

556


Which programming language should I learn first?

570