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


Can we have a private constructor ?

Answers were Sorted based on User's Feedback



Can we have a private constructor ?..

Answer / namrata ahuja

no. constructors are always declared publicly. they are used
to initialize data members of a class. they are
automatically invoked by a class object declaration so if it
is private it cannot be invoked.

Is This Answer Correct ?    6 Yes 39 No

Can we have a private constructor ?..

Answer / ravi`

no,
we can not make a constructor private , if we make a
constructor private its method cannot access in main method .

Is This Answer Correct ?    17 Yes 136 No

Post New Answer

More OOPS Interview Questions

How to overload new operator in c++

2 Answers  


What is friend function?

12 Answers   Wipro,


what is virtual function?

3 Answers  


What is abstraction and encapsulation?

0 Answers  


Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345

7 Answers  


What is the real time example of inheritance?

0 Answers  


when to use 'mutable' keyword and when to use 'const cast' in c++

0 Answers   TCS,


What is data binding?

4 Answers   Ittiam Systems,


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


What is the purpose of enum?

0 Answers  


What is an orthogonal base class?

2 Answers  


Why is abstraction needed?

0 Answers  


Categories