Review Rivendell
From Huben's Wiki
Line 4: | Line 4: | ||
** Constructors with arguments. | ** Constructors with arguments. | ||
** Overloading constructors. | ** Overloading constructors. | ||
− | * Using objects as fields, arguments and local variables (Triangle project | + | ** The meaning of final. |
+ | * Using objects as fields, arguments and local variables ([[Solution to Triangle project]].) | ||
** Understanding difference between static (class) and non-static (instance) fields. | ** Understanding difference between static (class) and non-static (instance) fields. | ||
** Using static methods when you don't have an object. | ** Using static methods when you don't have an object. | ||
Line 10: | Line 11: | ||
** Creating objects within static methods. | ** Creating objects within static methods. | ||
** Using object instances with their instance fields. | ** Using object instances with their instance fields. | ||
+ | ** Creating arrays of objects. | ||
+ | *** Declare the array. | ||
+ | *** Allocate the array of object VARIABLES with new. | ||
+ | *** Use new to create objects for each of the variables in the array. | ||
* Boolean calculations. | * Boolean calculations. | ||
** Relational operators. | ** Relational operators. | ||
*** Why == instead of =. | *** Why == instead of =. | ||
+ | *** Beware comparing doubles with ==. | ||
*** The other 5 relational operators. | *** The other 5 relational operators. | ||
+ | *** String methods charAt() and length(). | ||
** Boolean operators. | ** Boolean operators. | ||
*** &&, ||, !, ^ | *** &&, ||, !, ^ |