Can we have "Virtual Constructors"?

Answer Posted / vighnesh

Yes there is no virtual constructors.I can think a a reason
may be because a constructor is never inherited so there is
no polymorphism etc involved .

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe Trees using C++ with an example.

699


What parameter does the constructor to an ofstream object take?

703


Are there interfaces in c++?

658


How many standards of c++ are there?

722


Is swift faster than c++?

644






What is the difference between public and private data members?

752


Is there any difference between int [] a and int a [] in c++?

639


Is c++ double?

651


What is jump statement in C++?

698


How to access a variable of the structure?

663


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

727


Are strings mutable in c++?

781


What is the best free c++ compiler for windows?

698


Differentiate between a copy constructor and an overloaded assignment operator.

729


What does flush do c++?

658