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 size of a vector?

1122


what does the following statement mean? int (*a)[4]

1064


What does n mean in c++?

1136


What are the advantages of using pointers in a program?

1125


Is dev c++ a good compiler?

952


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2464


What is null c++?

1124


what you know about c++?

1136


Why do we need pointers?

990


Do you know about latest advancements in C++ ?

1220


What is the difference between an enumeration and a set of pre-processor # defines?

1367


How to access a variable of the structure?

1067


How do we balance an AVL Tree in C++?

1120


What is a block in c++?

1038


What is the role of C++ shorthand's?

1265