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 is the difference between equal to (==) and assignment operator (=)?

1137


what is data abstraction in C++?

1121


What is virtual methods?

1179


In a function declaration what does extern means?

1108


What is function overriding in c++?

1110


What is a dangling pointer in c++?

1205


Which function cannot be overloaded c++?

1165


What is c++ stringstream?

1175


How would you obtain segment and offset addresses from a far address of a memory location?

1135


Can we sort map in c++?

1081


What are move semantics?

1227


What is this pointer in c++?

1487


What does std :: flush do?

1190


What is stl containers in c++?

1091


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3064