How to construct virtual constructor
Answer Posted / gaurav
The first thing, Why we need a Virtual constructors, do we
really need that..... :) If I am making an object of A then
I should not expect the object of class B as I can directly
make a B class object.
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What do you mean by global variables?
What are the advantages of inheritance in c++?
What do you mean by ‘void’ return type?
What is the use of class in c++?
Describe exception handling concept with an example?
What is a block in c++?
What is an operator in c++?
Why is the function main() special?
What is the sequence of destruction of local objects?
Explain deep copy?
Why do we use classes in c++?
Where must the declaration of a friend function appear?
List the special characteristics of constructor.
Explain the use of vtable.
Why do we use constructor?