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

Explain the advantages of using friend classes.

693


What is private public protected in c++?

627


Which is the best c++ software?

706


Describe the advantage of an external iterator.

703


When one must use recursion function? Mention what happens when recursion functions are declared inline?

730






What are the differences between java and c++?

607


Where do I find the current c or c++ standard documents?

685


List the special characteristics of constructor.

832


Can you sort a set c++?

619


What is the advantage of an external iterator.

652


Why is standard template library used?

676


What is static class data?

656


What is the need of a destructor? Explain with the help of an example.

660


When to use “const” reference arguments in a function?

682


State the difference between pre and post increment/decrement operations.

699