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

Where are setjmp and longjmp used in c++?

1101


What are static variables?

1120


What is c++ similar to?

1168


Why do we use constructor?

1037


Mention the storage classes in c++.

1069


What is difference between n and endl in c++?

1081


What does h mean in maths?

1165


Is c++ low level?

1018


Can we define function inside main in c++?

994


What is buffering in c++?

1045


Can we make copy constructor private in c++?

1040


What are enumerations?

1087


What is scope resolution operator in c++ with example?

1024


Is it possible to use a new for the reallocation of pointers ?

1037


What is singleton class in c++?

1028