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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 5 oop principles?

1137


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2325


Is enum a class?

1076


what are the different types of qualifier in java?

2281


What are functions in oop?

1065


What is encapsulation and abstraction? How are they implemented in C++?

1143


What is abstract class in oop?

1021


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1929


Plese get me a perfect C++ program for railway/airway reservation with all details.

3911


What is the point of oop?

1196


What is difference between data abstraction and encapsulation?

1094


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6689


What is polymorphism and types?

1114


What is abstraction in oops?

1055


What is object-oriented programming? Webopedia definition

1277