Review Of Creating and Using Classes and Objects
From Huben's Wiki
(Created page with "Based on learning from projects: * Complex class project * Add Javadoc comments to class Complex. * Building Triangles Includes: * Constructors ** initialize fields ** c...") |
|||
Line 7: | Line 7: | ||
* Constructors | * Constructors | ||
** initialize fields | ** initialize fields | ||
+ | ** overloading | ||
** can call each other with this() | ** can call each other with this() | ||
* Creating and using objects | * Creating and using objects | ||
Line 22: | Line 23: | ||
** Accessors and modifiers. | ** Accessors and modifiers. | ||
** Data hiding. | ** Data hiding. | ||
+ | ** toString() method | ||
* Constants | * Constants | ||
** Are static final fields in a class, usually public. | ** Are static final fields in a class, usually public. |