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
Overloading Binary Operators class SI {float i,p,n,r,a; public: SI(){}; SI(int gp,int gn, int gr); void putdata(void); SI operator+(SI); }; SI SI::opera

What are control structures? - Control structures decide which instructions in program must be executed. - This implies that program flow may not necessarily move from one s

HOW THE C PROGRAM CODING IMPLEMENTED DY ITSELF UNDERSTANDING . ALSO HOW I CAN A BECOME A GOOD PROGRAMMER IN C WHAT I DO FOR GOOD PROGRAMMING ,TELL ME HOW C CODING DEVELOP DY ITSELF


Write a function that has an int parameter n, makes an integer mask having the bit 1 at the nth place from the rightmost bit, and returns the mask. For example, when n = 5 is passe

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

How does placing some code lines between comment symbols help in debugging the code? - Placing comment symbols /* */ around a code separates some code that coder believes might


Class Definition The following is the general format of defining a class template: class tag_name                  {                    public  :               // Must

The program reads two numbers and a character (operator). If the character is "+" then sum is displayed. If it is "-"then difference is displayed. If it is "*" then product is disp