How to construct virtual constructor
Answer Posted / vishwa
there is no need to use vitual constructors in C++.
because the construction of the class tree will be happened
from the base class to child class.
Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
What is near, far and huge pointers? How many bytes are occupied by them?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What is anonymous object in c++?
Tell me can a pure virtual function have an implementation?
Difference between a homogeneous and a heterogeneous container
What is the return value of the insertion operator?
Is there a sort function in c++?
What are the benefits of operator overloading?
List down the guideline that should be followed while using friend function.
Can java be faster than c++?
Differentiate between an external iterator and an internal iterator?
How many types of comments are there in c++?
What are the restrictions apply to constructors and destructors?
What is decltype c++?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?