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 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
How can I Draw an ellipse in 3d space and color it by using graph3d?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
write a program that reads a series of strings and prints only those strings begging with letter "b"
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
solve the problem in the programming language C++"if a five digit number is input through the keyboard.Write a program to calculate the sum of its digits(hint: use the modulus operator)
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.
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.)
write a program to perform generic sort in arrays?
write a program that reverses the input number of n.Formulate an equation to come up with the answer.
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
Code for Method of Handling Factorials of Any Size?
i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
Performance Algorithm A performs 10n2 basic operations and algorithm B performs 300 lg n basic operations. For what value of n does algorithm B start to show its better performance?