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

What sorting algorithm does c++ use?

1079


What are 2 ways of exporting a function from a dll?

1115


How to defines the function in c++?

1050


Write about the various sections of the executable image?

932


What is an undefined reference/unresolved external symbol error and how do I fix it?

1077


Is there a sort function in c++?

936


Is swift better than c++?

890


What is the use of bit fields in structure declaration?

924


What are structs in c++?

968


List the advantages of inheritance.

1062


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1009


How can we check whether the contents of two structure variables are same or not?

1018


Is c++ map a hash table?

971


What is a try block?

1030


Is c++ a dying language?

1099