Day 6

Objectives:

  • Interfaces
  • Exception Handling

Lab assignment:

  • Finish all the practice exercises of Days 1-5
  • Exercises for Day 6

pdf file: Practice Exercises for Day 6

Lecture slides:

Although in this example it is possible to use abstract class (in comparison to the Carbon Footprint - where the interface is 100% strategy to use), it seems that it is a trend in Java to do as much as possible via interfaces.