breakpoints when debugging
1. The program executes one line at a
2. Important variables
Basic Data type conversions:
Double---> int
int--->double
Conversions of reference data types:
1. Upward transformation
Parent class Variable name = new Subclass instance ();
A. The line code can perform successfully without casting
B. Creating a parent class object is exactly a subclass instance
C. The method that is called when the method executes is the overridden method of the subclass (! The subclass is exactly overriding the method)
D. Unique methods that cannot invoke subclasses
2. Downward transition
Parent class-Parent class variable name = new Subclass instance ();
Subclass sub-class variable name = (subclass) The parent class variable name; = = Subclass Sub-class variable name = new Subclass Instance ()
Constant (cannot be modified for this value)
Variable names for canonical constant values all uppercase
Multi-line annotations typically hit on constant values and methods
But notice that get set doesn't need to be hit.
Parent class instantiates a subclass object
The method that is executed at the time of invocation is the overriding method of the subclass
Cannot invoke the unique method of a subclass
Implementing object-Oriented Programming with Java (3)