Explain protected and public in c++, C/C++ Programming

Explain protected, public, private in C++?

These are three access spaecifiers in C++.

- Public - Here data members and functions are accessible outside the class.

- Protected - Data members and functions are available to derived classes only.

- Private - Data members and functions aren't accessible outside the class.



Posted Date: 9/7/2013 2:30:37 AM | Location : United States

Related Discussions:- Explain protected and public in c++, Assignment Help, Ask Question on Explain protected and public in c++, Get Answer, Expert's Help, Explain protected and public in c++ Discussions

Write discussion on Explain protected and public in c++
Your posts are moderated
Related Questions
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Program is to define a class as student: Program is to define a class as student and display the records specific depending upon the number class student  {  private:

Project Description: Design and prepare software that can navigate a mobile robot using SLAM technique using vision sensor (camera). Skills required are C Programming, Engine

I want a Reverse engineer a .exe to obtain the code Project Description: I'd like to get the full C++ source code from a .exe please Skills required is C++ Programming

Define Functions with arguments and return values? The earlier category functions receive values from the calling function through arguments but do not send back any value rath

assume that the first integer read with cin specifies the number of values remaining to be entered. that program should read only one value each time cin is executed .a typical inp

i need expression and its types with example programs in c++

the problem description. The order of the C Program should be as follows: Variables and constants Use #define statements to define the constants. Use arr

c++ coding decode the letters from numbers