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...

How to avoid a class from instantiation?

Answer Posted / rsn

Yes, I agree with Ravi. Classes can be prevented from
instantiating and also from getting inherited using provate
constructors. The initialisation can be done using member
functions in which case it is called "clone" functions(I
hope so, Pls correct me if i'm wrong!).

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it necessary to use a reference in the argument to the copy constructor?

1118


Explain the virtual inheritance in c++.

1072


What is the use of register keyword with the variables?

945


How do you establish an is-a relationship?

1165


Write about the stack unwinding?

1068


What is diamond problem in c++?

1005


How would you use the functions randomize() and random()?

1087


how to connect with oracle 9i with server in socket program in c/c++

2354


What can I safely assume about the initial values of variables which are not explicitly initialized?

1063


How to declare an array of pointers to integer?

1153


What is an incomplete type in c++?

1285


Describe the setting up of my member functions to avoid overriding by the derived class?

1140


What is a .lib file in c++?

1001


What things would you remember while making an interface?

1012


What is c++ coding?

1212