Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?
on
Get link
Facebook
X
Pinterest
Email
Other Apps
A: There is nothing like Virtual Constructor. The Constructor can’t be virtual as the constructor is a code which is responsible for creating an instance of a class and it can’t be delegated to any other object by virtual keyword means.
Nice info. Thanks for sharing valuable info about about c++ Faqs. I want to learn c training this tutorial is really helpful. Thanks a lot. Keep sharing on updating tutorials……
Comments
Question - 1) What is a class ?
Question - 2) What is an object ?
Question - 3) List the advantages of object oriented programming ?
Question - 4) What is meant by 'call by value' ?
Question - 5) What is meant by 'call by reference' ?
Question - 6) What is a reference variable ? What is its use ?
Question - 7) What are inline functions ? What is the advantage of using them ? How are they declared ?
Question - 8) What are the defining traits of an object-oriented language ?
Question - 9) What is the purpose of the scope resolution operator ?
Question - 10) What are the differences between type casting and automatic type conversion ?
Question - 11) Why ‘char’ is often considered as an integer data type ?
Question - 12) What is the difference between structure and class in C++ ?
Question - 13) What is the purpose of ios:app ?
Question -14) What is the purpose of ios::ate ?
http://ccppcoding.blogspot.in/
c++ interview questions and answers
Core Java Interview Questions and Answers
c++ interview questions and answers
Mysql Interview Questions and Answers