Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we have "Virtual Constructors"?

Answer Posted / shashank agrawal

No, This is not possible because virtual is used for avoid
overriding and the constructor is called when the object of
that class has been created so in this case overriding is
not possible then to make the constructor as virtual is
useless.so we dont create it virtal.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can class objects be passed as function arguments?

1069


What is the difference between public, private, and protected access?

1071


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1066


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1103


How const int *ourpointer differs from int const *ourpointer?

1143


Can you please explain the difference between using macro and inline functions?

1048


What do you mean by volatile and mutable keywords used in c++?

991


What do you mean by translation unit in c++?

1368


What is the main function c++?

1132


Which operator cannot overload?

1054


Differentiate between a copy constructor and an overloaded assignment operator.

1089


Is c++ a high level language?

1008


What is operators in c++?

1011


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2017


Explain what is class definition in c++ ?

1129