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

Why namespace is used in c++?

783


What is math h in c++?

823


Why c++ is better than c language?

778


Explain the differences between list x; & list x();.

761


Why do we need templates?

742


What do you mean by ‘void’ return type?

818


Why struct is used in c++?

806


Explain how functions are classified in C++ ?

985


What do you mean by late binding?

820


Explain function overloading

778


How can a struct in c++ differs from a struct in c?

801


Does c++ support multilevel and multiple inheritances?

740


What is a catch statement?

779


State the difference between pre and post increment/decrement operations.

813


what are Operators and explain with an example?

925