Described access privileges in c++? what is the default , C/C++ Programming

A: In C++ the access privileges are public, private and protected. The default access level assigned to members of a class is private. Private members of any class are accessible only in the class & by friends of the class. Protected members are accessible through the class itself and it's sub-classes. Public members of any class can be accessed through anyone.

 

Posted Date: 3/20/2013 3:40:05 AM | Location : United States







Related Discussions:- Described access privileges in c++? what is the default , Assignment Help, Ask Question on Described access privileges in c++? what is the default , Get Answer, Expert's Help, Described access privileges in c++? what is the default Discussions

Write discussion on Described access privileges in c++? what is the default
Your posts are moderated
Related Questions
write a pseudo code for computing sin(x) using sentinel control loop

6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".

Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");

Control Flow The control flow statements are used when it is needed that the flow of the program is to be changed after taking some decision. This control flow statement theref

write a program to calculate the cuboid

demonstrates shearing about origin

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '

Programming Assignment # 1 C and UNIX   The purpose of this assignment is to get you more familiar with Unix/Linux and those constructs of C that are not part of C++. Write a C

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Encapsulation and Data Hiding The property of being a self-contained unit is known as encapsulation. The idea that the encapsulated unit can be used without knowing how it work