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
What is the purpose of templates in c++?
What is basic if statement syntax?
Differentiate between declaration and definition.
What is the type of this pointer in c++?
What is set in c++?
What are the c++ access specifiers?
What is searching?
what is pre-processor in C++?
Is c++ a high level language?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
What is a namespace in c++?
Do you know what are static and dynamic type checking?
Why was c++ created?
Is c++ built on c?
Which programming language should I learn first?