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

List down the guideline that should be followed while using friend function.

1007


What is meant by the term name mangling in c++?

906


What is difference between class and structure in c++?

1132


Why do we use using namespace std in c++?

1027


What is c++ redistributable?

1167


What are the general quetions are in DEna bank manager IT/System interviews?

1952


What are friend classes? What are advantages of using friend classes?

1043


What is the this pointer?

1071


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

972


What is ostream in c++?

959


What is the use of 'this' pointer?

1206


What is a vector c++?

1100


Can we get the value of ios format flags?

1071


What is c++ similar to?

1135


What is scope operator in c++?

1036