COMP 200: Elements of Computer Science
Spring 2013

Practice with Classes and Objects

There are multiple motivations for why we introduce classes and objects. The simplest motivation is that they provide one technique for packaging together related information. All of the data and functions/methods for operating on that data belong together.

Our example for today is the Character class seen in video and defined in http://www.codeskulptor.org/#examples-oo-character.py

Class will be interactive, but mostly instructor-led where we use this definition in more examples, and modify the class.