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

What is the use of class in c++?

1025


What is the difference between map and hashmap in c++?

1059


What is the difference between a definition and a declaration?

1020


which of the following is not an secondary constant a) array b) real c) union

1774


Difference between delete and free.

1035


Explain what are single and multiple inheritances in c++?

989


Can we use this pointer inside static member function?

1035


Write about an iterator class?

1042


What is c++ library?

1001


Is c++ a float?

1026


What do you mean by vtable and vptr in c++?

1002


What is a static element?

1032


Explain the static member function.

1133


How many ways can a variable be initialized into in C++?

991


Will the following program execute?

1003