IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Coder
Search Coder Group:

Advanced
-Collapse +Expand Coder Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Coder Store
PRESTWOODSTORE

Prestwood eMagazine

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

   ► KBRole-Based T...Coding & OOObject Orien...   Print This     
  From the August 2014 Issue of Prestwood eMag
 
Coder Object Orientation (OO):
Class Visibility Specifiers
 
Posted 16 years ago on 12/12/2008
Take Away: 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.
Coder Definition Flashcard:
 A flashcard from our Coder Flashcards Library
 A definition from our Coder Definitions Page

KB101489

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.

In most OOP languages, private, protected, and public members of a class have a specific scope:

  • Private = Used by the defining class only. Invisible outside of the class except by friendly classes.
  • Protected = Used by the defining class and descendant classes only (plus friendly classes).
  • Public = Visible wherever its class can be referenced.

Each OOP language implements these standard scope specifiers in slightly different ways.

More Info

Article:  A 10 Minute Your First Delphi Class Quick Start
Code:  ASP Classic Member Visibility (Private, Public)
Code:  C# Access Modifiers
Code:  C++ Member Visibility
Code:  Delphi Member Visibility
Code:  Delphi Prism Class Member Visibility Levels
Code:  VB Classic Member Visibility
Code:  VB.Net Access Modifiers

Comments

0 Comments.
Share a thought or comment...
 
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 = P161A1
Enter key:
Definition 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 play-drums.com 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 #101489 Counter
19804
Since 12/12/2008
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


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