Outline for November 14, 2023

Reading: none
Due: Homework 4, due November 29, 2023


  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__)

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

  3. Copy, deepcopy [copying.py]

  4. Inheritance [inherit.py]


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: [email protected]
ECS 235A, Computer and Information Security
Version of November 14, 2023 at 12:39PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh