Skip to main content

INF1B - top navigation

  • Learn
  • Piazza
  • DRPS

Breadcrumb

  1. Home
  2. INF1B: Informatics 1 - Object Oriented Programming
  3. INF1B: Schedule

INF1B: Week 7: Inheritance

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.

License
Creative Commons - Attribution Share A Like

Book traversal links for INF1B: Week 7: Inheritance

  • INF1B: Week 6: Creating classes; Refactoring
  • Up
  • INF1B: Week 8: More Inheritance plus time for assignment

Navigation links

  • INF1B: Getting Started: setting up the tools you will need for this course
  • INF1B: Resource List
  • INF1B: Schedule
    • INF1B: Week 1: Intro and Basics; Conditionals and Loops
    • INF1B: Week 2: Arrays; Functions
    • INF1B: Week 3: Classes and Objects; Testing and Debugging
    • INF1B: Week 4: Java API; Collections
    • INF1B: Week 5: Stack vs Heap; Abstraction and Modularisation
    • INF1B: Week 6: Creating classes; Refactoring
    • INF1B: Week 7: Inheritance
    • INF1B: Week 8: More Inheritance plus time for assignment
    • INF1B: Week 9: Abstract Classes and Interfaces; Object Design
    • INF1B: Week 10: Version Control
    • INF1B: Week 11: Catch-up Week
  • INF1B: Assessment
  • INF1B: Tutorials
  • INF1B: Labs
  • INF1B: Labs Site
RSS feed

Opencourse privacy & accessibility statements; contact Informatics, ILTS.