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

What is the importance of mutable keyword?

995


What is an iterator?

1150


Name the operators that cannot be overloaded in C++?

1013


What is the type of 'this' pointer?

984


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

947


What are the implicit member functions of class?

1048


Which of the following is evaluated first: a) && b) || c) !

2324


What is null pointer and void pointer?

1022


What is the purpose of the "delete" operator?

1023


What is the difference between structures and unions?

1027


What are the various oops concepts in c++?

988


What is the benefit of c++?

1076


Explain deep copy?

1005


What are c++ tokens?

1006


Is c++ high level programming language?

1087