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

What are the differences between java and c++?

1129


Which is the best c++ compiler?

1129


What are the 2 main types of data structures?

1167


What is friend class in c++ with example?

1114


How do I get good at c++ programming?

1246


What is the keyword auto for?

1084


Explain the concept of memory leak?

1156


How to demonstrate the use of a variable?

1159


Explain what happens when a pointer is deleted twice?

1319


What is the this pointer?

1165


What is object oriented programming (oop)?

1169


What is c++ prototype?

1303


Why do we need templates?

1048


What is oop in c++?

1122


Explain the concept of copy constructor?

1105