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
What is abstraction c++?
What is a memory leak c++?
Write a program to add three numbers in C++ utilizing classes.
Explain friend class?
Can a program run without main in c++?
What is c++ & why it is used?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is the use of volatile variable?
Write a program to interchange 2 variables without using the third one.
What is function prototyping?
Explain operator overloading.
What is the syntax for a for loop?
What is an adaptor class in c++?
Is swift a good first language?
What gives the current position of the put pointer?