How to construct virtual constructor
Answer Posted / gaurav
The first thing, Why we need a Virtual constructors, do we
really need that..... :) If I am making an object of A then
I should not expect the object of class B as I can directly
make a B class object.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Can you declare an array without a size in c++?
Why main function is special in c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
how to access grid view row?
What is guard code in c++?
What is the output of the following program? Why?
what are the iterator and generic algorithms.
What is this weird colon-member (" : ") syntax in the constructor?
What are the storage qualifiers?
What is one dimensional array in c++?
Is oops and c++ same?
Write syntax to define friend functions in C++.
Write a recursive program to calculate factorial in c++.
Why is "using namespace std;" considered bad practice?
Can non graphic characters be used and processed in C++?