Chapter 5: Enhancing Classes
Enhancing Classes
References
The null Reference
The this Reference
The this reference
Assignment Revisited
Reference Assignment
Aliases
Testing Objects for
Equality
Garbage Collection
Passing Objects as
Parameters
Passing Objects to
Methods
ParameterPassing.java
ParameterTester.java
Num.java
The static Modifier
Static Variables
Static Variables
Static Methods
Static Methods
Static Methods and Static
Variables
CountInstances.java
Slogan.java
Wrapper Classes
Wrapper classes
Some Methods of the
Integer class
Keyboard Input Revisited
Wages2.java
Java I/O
Reading Keyboard Input
Reading Keyboard Input
Nested Classes
Nested Classes
Nested Classes
Inner Classes
TestInner.java
Outer.java
Interfaces
Interfaces
Complexity.java
Interfaces
Interfaces
Question.java
Interfaces
Interfaces
Interfaces
Interfaces
Interfaces
The Comparable Interface
The Iterator Interface
Dialog Boxes
Dialog Boxes
EvenOdd.java
Graphical User Interfaces
Containers
Events
Events and Listeners
Events and Listeners
Listener Interfaces
Creating GUIs
PushCounter.java
Creating GUIs
Creating GUIs
GUI Applications
Summary