Class 1, Part 2 |
Intro to Java 30-IT-396 |
|
Class Design Hints Discussion
-
The book lists the following hints. Why?
-
Always keep data private.
-
Always initialize data.
-
Don't use too many basic data types in a class.
-
Not all individual fields need mutators and accessors.
-
Use standard form for class definitions.
-
Break up classes with too many responsibilities.
-
Make names of classes and methods reflect responsibilities.
Part 5: Inheritance


Created by: Brandan
Jones January 4, 2002