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
Program is to define a class as library: Program is to define a class as library and perform all the function of library management by using classes and object class librar

Should my constructors employ "assignment" or "initialization lists"?

T o k e n :  Tokens  are  small  entities  in  a  program.    Example: identifiers,  keywords,  constants, operators, strings, etc.  These tokens are used almost in same wa

Create a program that asks the user for two integers which represent the numerator and denominator parts of fraction. Print out a simplification of the fraction. Example: Enter th

For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t

i have a project that is due this Wednesday and i was wondering if i can get help in doing it?

You are given a collection of words, say as in a dictionary. You can represent it in the following compressed form: the first word will be followed by a sequence of a pair of numbe

C Programming and Data Structures 1. Define and explain flow chart with an example. 2. Write an algorithm to print all even numbers in descending order and draw the flowcha

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci