Note: there has been a change in the schedule for this week. This week originally had two lectures, but the lecture 14 has been moved from this week to Monday of week 8.
Week Highlights
By the end of this week, you should understand:
From Lecture 13:
- What UML diagrams are and how they are structured
- What inheritance is and how it can be helpful
- How the subclass relationship works, and how to use the ‘is-a’ test to see if one class is a subclass of another
- What the protected access modifier does
- How subclasses can override inherited methods
- How to design an inheritance hierarchy
- The Object class
Lecture 13: Inheritance A
- Slides: 13-inheritanceA.pdf
Lecture 13 ➡ Objects First: read Chapter 10. Improving Structure with Inheritance, stopping at 10.7 Subtyping for now
This lecture is on Monday. There will be no lecture on Thursday this week.
Tutorial: Refactoring
Instructions and materials: Tutorial6.pdf and Tutorial6_materials.zip
Solutions: Tutorial6_solutions.pdf and Tutorial6_solutions.zip
Lab exercises
This week's lab exercises cover collection classes, packages and file I/O. There are three warmup exercises, three core exercises, and one optional exercise.
What should I be doing with assessment?
You should carry on working on Assignment 2. Given there is only one lecture this week, this will give you a little more time to focus on it. However, you will have more time next week to devote to it.
There will be no weekly quiz in Week 7. Knowledge of lecture 13 will be tested next week in the Week 8 quiz.