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

In this assignment, you will develop a program named "match" to be used by a dating service to form couples. Given the number of gentlemen, the number of ladies, and a list of acce

Write a C++ program according to the following specifications 1. Display a brief description of the program. 2. Ask the user to specify the type of loading (end load, intermediate

C program to remove vowels in sentence : void main() {                 char  str[100];                 int n;                 printf("enter string\n");

write a static method with one integer parameter, x that returns the value of the polynomial 3x(2)- 7x + 2

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules. a. A call made between 8:00 AM and

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw   Solution:

example of program to add two number

Constructor public class ListNode {    // package access members; List can access these directly private E data; // data for this node privateListNode nextNode; /

Explain the Command Line Parameters? The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main