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

Do you know about latest advancements in C++ ?

1158


Can member functions be private?

957


What is else if syntax?

1105


Should I learn c or c++ or c#?

951


What is the use of map in c++?

1091


How the programmer of a class should decide whether to declare member function or a friend function?

1063


Which one between if-else and switch is more efficient?

1011


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

1010


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

1224


Is c++ a low level language?

915


How can you quickly find the number of elements stored in a dynamic array?

984


Explain the use of this pointer?

1114


what are the events occur in intr activated on interrupt vector table

1666


What is boyce codd normal form in c++?

1101


What do you mean by ‘void’ return type?

999