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
Will rust take over c++?
If there are two catch statements, one for base and one for derived, which should come first?
How a new operator differs from the operator new?
What is setf in c++?
How does a C++ structure differ from a C++ class?
Define a nested class.
What are the various oops concepts in c++?
What is the best c++ ide?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What are the advantages of using a pointer?
What is a constant? Explain with an example.
How can a struct in c++ differs from a struct in c?
What is the use of structure in c++?
Where do I find the current c or c++ standard documents?
What is searching?