what is virtual constroctor ? give an exam for it?-(parimal
dhimmar)

Answer Posted / subhashish sen

Constructor can not be virtual.becoz constuctor is an entity
which initializes the V-table(V-table stores the addresses
of all virtual member functions of a class.)So if we declare
a constructor as virtual then who will inialize V-table for
this constructor??Thats why constructor can never be virual.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

4719


3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...

4536


Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3332


i don't know about working of nested for loop can any one help me

1967


Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.

2316






Code for Easily Using Hash Table?

2587


How to swap two ASCII numbers?

2616


write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

2550


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2893


Write a simple encryption program using string function which apply the substitution method.

5709


Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4660


1+1/2!+1/3!+...+1/n!

2111


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

4192


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3465


How to Split Strings with Regex in Managed C++ Applications?

3260