Friday, November 9, 2007
Access Modifiers: public, private, proctecd, package protected(default)
Public : declarations represent specifications – what clients of a package are supposed to rely on.
Package Private (default): declarations are part of the implementation of a class that must be known to other classes that assist in the implementation.
Protected: declarations are part of the implementation that subtypes may need, but that clients of the subtypes generally won’t.
Private: declarations are part of the implementation of a class that only that class needs.
***********************************************************************
Import: Does not grant any special access; it only allows abbreviation.
Subscribe to:
Post Comments (Atom)
Just some daily notes ...
Things I'm into now...
Blog Archive
-
▼
2007
(29)
-
▼
November
(14)
- Declaring an Edge Adjacency List Graph
- MaximallyBalanced or Complete Binary Tree
- Calculating the Height of a Tree
- Adding to a Circular Doubly Linked List
- 3 ways to REVERSE a list (singly linked)
- Reversing a List Iteratively!
- Doubling a Linked List
- Access Modifiers: public, private, proctecd, packa...
- End of HFJ
- Format Specifiers
- Collection class tidbits...
- Generic class definitions and one implementation
- doubling a List
- Don't Forget Your Scheme!
-
▼
November
(14)
No comments:
Post a Comment