Outline for November 17, 2025

Reading: none
Assignments: Homework 4, due November 24, 2025

  1. Classes and objects [cards.py]
    1. User-defined types (classes)
    2. Instantiate (create) new object (__init__)
    3. Objects and attributes
    4. Objects and methods
    5. Printing objects (__str__)

  2. Complex numbers, arithmetic, and comparison [complex.py]

  3. Copy, deepcopy [copying.py]

  4. Inheritance [inherit.py, inherit-mult.py]

  5. Writing a program with objects [war.py]

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
MHI 289I, Programming in Health Informatics
Version of November 16, 2025 at 7:33PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh