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
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

question c

Aim: To implement a program to find area of rectangle, surface area of box and volume of box using virtual functions. Code:                       class rect {

pls give me answer 01110-00110 in 2''s comlpiment in detail

write a program that adds all numbers from 1 to 200


Pos Console CPP Unit Testing Project Description: Do the CPPUnit Testing for the project. Have all the functions done. Skills required are Android, C Programming, C++ Prog

how c program starts executing?


I want to take 1.1 as input but when I am declaring it as float the output is given as 1.1000000