CSCI 511 Lessons
Course 3
Lessons 7, 8 and 9
-
Lesson 7: Nested Classes
- Introduction
- Nested Top-Level Classes
- Inner Classes
- Member Classes
- Local Classes
- Anonymous Inner Classes
- Why Use Them?
-
Lesson 8: Interfaces: Listeners and Inheritance
- Interfaces and Classes
- Interfaces and Multiple Inheritance
- Multiple Inheritance Design Conclusions
- Casting
- Interfaces as Types
- Casting Back
- Casting: instanceof
- Same With Listeners
- Extending Interfaces
- Interfaces as Callbacks
- Lesson 9: Interfaces and Callbacks
- How Things Work
- Dot operator - no access to method locations without class
- Callbacks: The Callback
- Timeable Interface
- Timer class
- Random Number Generators
- Callbacks: The Call
- Student1: Sort - shell sort
- Student2: Sort - merge sort
- Student3: Find min
- The Grader
- Conclusion