How to construct virtual constructor
Answer Posted / shakti singh khinchi
Virtual constructors are not used in any case in c++, bcz
the construction order in c++ should always remains from
base to derived , no one can changed their construction
order, so no need to declare constructor as virtual. But if
anyone wants to make it virtual then it is possible to make
a constructor virtual but it is against the OOPs.
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is copy constructor? Can we make copy constructor private in c++?
Which software is used to run c++ program?
What is the difference between object-oriented programming and procedural programming?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
Where do I find the current c or c++ standard documents?
What is c++ try block?
Explain binary search.
What sorting algorithm does c++ use?
How new/delete differs from malloc()/free?
What is an overflow error?
Can I learn c++ without learning c?
What is the difference between multiple and multilevel inheritance in c++?
Is c++ a high level language?
What does the ios::ate argument do?
How do you remove an element from a set in c++?