Can we have "Virtual Constructors"?

Answer Posted / rani

No, we cannot have virtual constructor. Because constructor
is usually use to create instance of a class and we cannot
make it virtual.

Is This Answer Correct ?    47 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and its type in c++?

594


What is c++ and its features?

578


What are manipulators used for?

613


What methods can be overridden in java?

679


Why is polymorphism useful?

569






What are the advantages of using const reference arguments in a function?

622


What is the most useful programming language?

608


Is ca high or low level language?

586


Are strings mutable in c++?

694


How can an improvement in the quality of software be done by try/catch/throw?

594


What is c++ virtual inheritance?

599


What are the various compound assignment operators in c++?

553


Mention the storage classes in c++.

653


Write a Program to find the largest of 4 no using macros.

584


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

638