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
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.
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+……………...
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
i don't know about working of nested for loop can any one help me
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.
Code for Easily Using Hash Table?
How to swap two ASCII numbers?
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
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
Write a simple encryption program using string function which apply the substitution method.
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.)
1+1/2!+1/3!+...+1/n!
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
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!!!)
How to Split Strings with Regex in Managed C++ Applications?