CS 451 Programming Paradigms
Week Thirteen
Lecture 25 : Tuesday, 4/18/00
Lecture 26 : Thursday, 4/20/00
- Went over examples of basic class definitions in Java--Employee example
- Considered inheritance -- Manager example
- Looked briefly at abstract methods and classes
- Looked briefly at features of the Run-Time Type Identification system
- Considered the problem of making parameterized sorting using subclasses of "sortable"
- Discusses problems with this in terms of objects that already have inherited properties
from another class, such as Tile extends Rectangle
- Introduced interfaces to solve this problem and looked at Tile extends Rectangle implements Sortable
- Another example using interfaces, the Timer, also hinted at doing threaded programming
- Introduced exceptions, which are instances of Exception-derived classes
- They use throw, throws, and try/catch blocks
- Looked at how to make applets
- Discussed why cryptography is not a part of Java (most cryptosystems are proprietary, Java is open)
- Pointed out the Swing tutorial link which is also on the main course web page.
- See Java Swing Tutorial
[ Back to CS451: Lecture Summaries ]