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

Explain the concept of copy constructor?

1059


When does a 'this' pointer get created?

1109


How long it will take to learn c++?

1053


Write a Program for find and replace a character in a string.

1089


What is the C-style character string?

1163


What is the basic structure of a c++ program?

1158


What information can an exception contain?

1152


What is a constant? Explain with an example.

1025


What is prototype for that c string function?

1152


Are vectors faster than arrays?

1009


Why cout is used in c++?

1033


Explain the static member function.

1194


Where the memory to the static variables is allocated?

1068


What is istream and ostream in c++?

1140


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1100