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


Please Help Members By Posting Answers For Below Questions

What is near, far and huge pointers? How many bytes are occupied by them?

646


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

581


What is anonymous object in c++?

626


Tell me can a pure virtual function have an implementation?

544


Difference between a homogeneous and a heterogeneous container

649






What is the return value of the insertion operator?

597


Is there a sort function in c++?

540


What are the benefits of operator overloading?

671


List down the guideline that should be followed while using friend function.

639


Can java be faster than c++?

659


Differentiate between an external iterator and an internal iterator?

564


How many types of comments are there in c++?

566


What are the restrictions apply to constructors and destructors?

633


What is decltype c++?

551


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

635