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
Virtual Base Classes This ambiguity can be resolved if the class derived have only one copy of the class base. This can be done by making the base class a virtual class. This k

Write three functions in C or C++: one that declares a large array statically, one that declares the same large array on the stack, and one that creates the same large array from t

The video game machines at your local arcade output coupons depending on how well you played the game, you can redeem 10 coupons for a candy bar, 6 coupons for .a medium soft drink

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

what is spanning tree? explain prims algorithm spanning tree?

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

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0

#an array that accept input and gives an output

Constructor public class ListNode {    // package access members; List can access these directly private E data; // data for this node privateListNode nextNode; /

Problem: (a) Using a class hierarchy of your own choosing, with at least TWO subclass levels, show (i) the use of abstract and concrete forms of Java class and method in you