ICS4

Module 2 (Marrch 18 - 29)

The main focus of this Module will be exploring Object-Oriented Programming (OOP) in Python. We will practice communicating information about our code by writing properly formatted docstrings and UMLs.

Intro to OOP

  1. Read over this intro to Python OOP
  2. You may use the following questions to guide your reading:
    • Explain the benefits of object-oriented programming
    • What is the difference between a class and an object
    • What is the difference between properties and methods of a class
    • What is code reuse? How does it relate to inheritance?
    • What is polymorphism? How does it relate to methods?
  3. Here is a draft of this Module's assignment, if you want to get a head start. It's still a work in progress, but essentially you will be asked to create a simple game using classes. It doesn't have to be a wizard battle
  4. Try the Codecademy tutorial for a step-by-step walk-through of classes in Python

OOP UMLs

Watch T.Payne's UML video below and try the exercises at the end.


Assignment 2: March 22 2019

Quiz 2: March 29 2019

Note that any material presented in this module is fair game for the quiz (except UMLs video)

This work and other materials under github.com/ICS4U-ICS4C,
are licensed under Creative Commons Attribution 4.0 Int'l License.