Virtual constructor, C/C++ Programming

Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

Posted Date: 2/12/2013 6:21:23 AM | Location : United States

There is nothing like Virtual Constructor. The Constructor can''t be virtual as the constructor is a code which is responsible for creating an instance of a class and it can''t be delegated to any other object by virtual keyword means.

Posted by Robert | Posted Date: 2/12/2013 6:21:58 AM

Related Discussions:- Virtual constructor, Assignment Help, Ask Question on Virtual constructor, Get Answer, Expert's Help, Virtual constructor Discussions

Write discussion on Virtual constructor
Your posts are moderated
Related Questions

i wont to make triangle with number but number from the largest possible number to 01 (reversed).

program that convert take decimal digit and convert it to binart digit

A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

Need help with C network program

Important Note: No course works, which have been submitted via hard copies or emails, will be accepted a short essay below edited in a document (word, other) files with

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''''''{'''''''' and end wi

The video game machines at your local arcade output coupons depending on how well you played the game, you can redeem 10 coupons for a candy bar, 6 coupons for .a medium soft drink

2-D Array- C program: Define a two dimension array using c. void convert ( int a[10][10] , int[] , int , int); void main()   {   clrscr();   int a[10][10], b[10

#include stdio.h> #include conio.h> #include string.h> void main() {           int i=0,j=0,k=0,l=0;           int a[3][3],temp[3][3];           clrscr();