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

Making a constructor private is perfectly legal.
But now u can't create instance of that class.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does std endl flush?

1045


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1035


What is the v-ptr?

1168


Can you pass an array to a function in c++?

1011


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

1004


Is python better than c++?

1035


What do you mean by stack unwinding in c++?

1234


What are the uses of static class data?

1187


what is c++

2391


What are smart pointers?

2295


What is a static element?

1082


What is a c++ vector?

1058


What is the auto keyword good for in c++?

1192


What is oop in c++?

1086


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1086