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 / ravi

We can aviod a class from instantiation by making all
variants of constructors as private. We can provide user
defined function like create member function under public
scope and call this private construcotrs from this create
function to create an object for that class.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you link a c program with a c function?

1005


What is a modifier in c++?

1078


Can member data be public?

992


What are the operators in c++?

1055


Explain the uses of static class data?

1052


How does c++ sort work?

924


Which software is used to run c++ program?

942


Explain some examples of operator overloading?

1033


How is c++ different from java?

995


Is swift better than c++?

890


Who calls main function?

1051


What is the difference between #import and #include in c++?

1057


To what does “event-driven” refer?

1001


Can constructor be static in c++?

1049


What is near, far and huge pointers? How many bytes are occupied by them?

1069