Is probable to encompass virtual constructor? if yes,how, C/C++ Programming

Is it probable to encompass Virtual Constructor? If yes, how? If not, Why?

 

Posted Date: 3/15/2013 3:50:00 AM | Location : United States





A: There is nothing such as Virtual Constructor. The Constructor can''t be virtual since the constructor is code that is responsible for developing an instance of a class and it can''t be delegated to any other object through virtual keyword means.

 

Posted by | Posted Date: 3/15/2013 3:50:11 AM


Related Discussions:- Is probable to encompass virtual constructor? if yes,how, Assignment Help, Ask Question on Is probable to encompass virtual constructor? if yes,how, Get Answer, Expert's Help, Is probable to encompass virtual constructor? if yes,how Discussions

Write discussion on Is probable to encompass virtual constructor? if yes,how
Your posts are moderated
Related Questions

write a C++ program that performs the following tasks 1. prompts the user to enter two numbers 2. displays the divisors of each number and store the divisors of number 1 in A and t

if one won't explicitly call the destructor of a local; then how does he handle the above situation?

Default assignment operator mange assigning one object to another object of the same class. It is member to member copy as shallow copy.

answer for tcs is working question

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your

#At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with the

Structures A structure is a user-defined data type, which may have different data types as its members. Creating a structure is a two-part process. First, a structure template

how to declare arrays