Lecture 16: November 21, 2019

Reading: §14
Due: Homework 4, due on November 25 at 11:59pm


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

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 21, 2019 at 11:58AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh