Week14: Abstracts

MONDAY:

Today in class we discussed finally blocks that can be used after try-catch sequences, and how to trace through them.  We also discussed and demonstrated some code that makes use of the Comparable interface within Java API.

WEDNESDAY:

Today in class we discussed and demonstrated some of the similarities and differences between using inheritance and interfaces.  While going through these examples, we also paid special attention to the difference between compile-time type information vs run-time type information.  Here are the SLIDES and code that were used in class today:

FRIDAY:

Today we dug further into the distinction between run-time and compile time type.  We also had a short discussion about relative vs. absolute paths, and worked through a try-catch-finally trace (only the morning lecture made it through this trace, but it’s worth reviewing for everyone):