Your full service technology partner! 
-Collapse +Expand
Search C++ Group:

-Collapse +Expand C++ To/From
-Collapse +Expand C++ Study Test
-Collapse +Expand C++ Store

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingC++Standard C++C++ OOP   Print This     
C++ OOP:
C++ Member Visibility
Posted 13 years ago on 1/3/2009
C++ Code Snippet:
 A flashcard from our C++ Flashcards Library
 A code snippet from our C++ Code Snippets Page


General Info: Class Visibility Specifiers

In OOP languages, members of a class have a specific scope that indicates visibility. Standard visibility includes private, protected, and public. Private members are usable by the defining class only (fully encapsulated). They are invisible outside of the class except by friendly classes. Protected members are usable by the defining class and descendant classes only (plus friendly classes). Public members are usable wherever its class can be referenced.

Languages Focus: Member Visibility

Traditional member visibility specifiers for fully OOP languages are private, protected, and public. Many modern OOP languages implement additional member visibilities.

Additional member modifiers are documented under the Member Modifiers topic.

C++ Member Visibility

C++ implements class and member visibility specifiers traditionally. Note the colon at the end of each visibility specifier and the semi-colon at the end of the class (the end of the statement).

Syntax Example:
class Cyborg: Public AParentClass {

More Info

Definition:  Class Visibility Specifiers


Share a thought or comment...
First Comment
Comment 1 of 4

In your company I have work and I give my best but I think your company manager does not like my work. Now I am doing work in this company. mobile app development services

Posted 20 months ago

Comment 2 of 4

We provide dissertation writing services at cheap price. If you want to get our cheap and quality services, you have to visit our company‘s official website or contact our expert writers. Dissertation writing services

Posted 20 months ago

Comment 3 of 4

If you need assignment writing at very cheap prices so click on Cheap assignment help online. They have expert writers who are providing the best assignment help at very cheap rates the writers are 24/7 ready to help you.

Posted 20 months ago

Latest Comment
Comment 4 of 4

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia

Posted 18 months ago
Write a Comment...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1232A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101491 Counter
Since 1/3/2009
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site:

©1995-2022 Prestwood IT Solutions.   [Security & Privacy]