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


What do you mean by public protected and private in c++?



What do you mean by public protected and private in c++?..

Answer / Satyendra Kumar Yadav

In C++, access specifiers are used to control the visibility of class members. Public members can be accessed from anywhere, Protected members can only be accessed within the same class and its derived classes, while Private members can only be accessed within the same class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Which algorithm do you like the most? Why?

2 Answers   Google,


In a class only declaration of the function is there but defintion is not there then what is that function?

5 Answers   Hughes,


What are the rules for naming an identifier?

1 Answers  


Explain the difference between overloading and overriding?

1 Answers  


Is it possible to provide default values while overloading a binary operator?

1 Answers  


Explain friend class?

1 Answers  


When is the copy constructor called?

1 Answers  


How would you implement a substr() function that extracts a sub string from a given string?

1 Answers  


What are the benefits of c++?

1 Answers  


Explain rtti.

1 Answers  


Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)

4 Answers   HTC, TCS,


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1 Answers  


Categories