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...

Do we have private destructors?

Answer Posted / guest

RE: #1

You can have private constructors. It's pretty common
practice when you create a class which you want to never be
constructed with "new" from outside the class (for example,
if you have a static factory member of the class).

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we check whether the contents of two structure variables are same or not?

1074


What is encapsulation in c++ with example?

1006


What are the uses of c++ in the real world?

1039


What is the C-style character string?

1157


What is class syntax c++?

1159


what is C++ objects?

1197


What are the manipulators in c++?

1041


Is c++ low level?

1034


Is c++ faster than c?

1027


What is the oldest programming language?

1017


Will c++ be replaced?

1046


Is c++ a pure oop language?

1085


What is a singleton class c++?

1038


What does h mean in maths?

1218


What is the need of a destructor?

1146