CS 448 Lecture - Java abstraction and coding
Topics for today:
- Reading --C15, C16: "...perhaps it was something in the sweat smell..."; intuition -- Visual compensation 15% -- 80 years +/-20
- Groups: Creating working minimax code
- Abstract classes in Java
- Makes it possible to abstract commonalities from two (or more) classes.
- Like interface, makes it possible to require certain methods to be implemented. Each signature is preceded by abstract; each must be overridden in subclasses (which
are not themselves abstract).
- Methods may be implemented in the abstract class; if they are not overridden in a subclass when sent to the subclass object the superclass method is executed.
- Can declare variables in abstract classes
- Cannot instantiate!
- Classes may only extend one other class
- Parameter types may be abstract
- Learning to play go?