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 do you define/declare constants in c++?

1004


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1132


What is an overflow error?

1051


Is c++ proprietary?

1012


What is lvalue?

1131


Define stacks. Provide an example where they are useful.

952


What is private public protected in c++?

983


Explain how overloading takes place in c++?

973


What are the vectors in c++?

986


What is the difference between public, private, and protected access?

1013


Is c++ a software?

1147


Explain Memory Allocation in C/C++ ?

1027


What is #include ctype h in c++?

1120


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1950


What is a modifier in c++?

1081