June 2017
Beginner
1296 pages
69h 23m
English
[Note: This section may be read after Chapter 8.]
We now apply access modifiers to the members of our classes. We’ve introduced access modifiers public and private. Access modifiers determine the visibility or accessibility of an object’s attributes and methods to other objects. Before we can begin implementing our design, we must consider which attributes and methods of our classes should be public and which should be private.
We’ve observed that attributes normally should be private and that methods invoked by clients of a given class should be public. Methods that are called as “utility methods” only by other methods of the same class normally should be private. The UML employs ...
Read now
Unlock full access