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
Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Q-What is your reaction to following line of code?               delete this; A: This is not a good programming Practice. A good programmer will insist that you must absolute

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b


what is the difference between call by reference and call by pointer method?


Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Q: however shouldn't I always use a printOn() method instead of a friend function? A: No. The usual cause people wish to always use a printOn() method instead of  a friend fu

how i can open a file

FIT 3042 System Tools and Programming Languages Semester 1 2013 Assignment 1 An SDL video player for a custom video format Worth: 20% of final mark. Must be completed individually