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 3: Classes and Objects; Testing and Debugging

Week Highlights

By the end of this week, you should understand:

From lecture 5:

  • what encapsulation is and why it’s useful
  • Why focussing programs on objects is useful
  • That objects have a state and some behaviours, and what this means
  • What classes are, why they are important, and how they relate to objects
  • A basic idea of how memory works in Java
  • What null is
  • What autoboxing and unboxing are
  • Calling methods
  • Class methods v instance methods
  • Global constants

From Lecture 6:

  • three types of errors: what they are, when they are detected, and how hard they might be to fix

Lecture 5: Classes and Objects

  • Slides: 05-classes-and-objects.pdf

Lecture 5 ➡ Objects First: read Chapter 1. Objects and Classes (pp 3-19), skipping parts that are specific to the BlueJ IDE.

Lecture 6: Testing and Debugging

  • Slides: 06-testing-and-debugging.pdf

Lecture 6 ➡ Objects First: read Chapter 9. Well-Behaved Objects (pp 295-328)

Lecture 6 ➡ Java Tutorial: read Chapter 10. Exceptions

Tutorial: Debugging

Instructions and materials: Tutorial2.pdf and Appdroid.zip

Solutions: Tutorial2_solutions.pdf and appdroid-solutions.txt

Lab exercises

This week's lab exercises cover arrays. There are three warmup exercises, three core exercises, and one optional exercise.

What should I be doing with assessment?

Assignment 1 is released this week.  Make sure you spend about 3 hours this week beginning work on it.

License
Creative Commons - Attribution Share A Like

Book traversal links for INF1B: Week 3: Classes and Objects; Testing and Debugging

  • INF1B: Week 2: Arrays; Functions
  • Up
  • INF1B: Week 4: Java API; Collections

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.