Week 2: Object Oriented Programming
Outcomes
You should be able to:- Write or identify a definition for
- Functions
- Methods
- Class
- Object
- Encapsulation
- Abstraction
- Inheritance
- Polymorphism
- Constructor
- __init__
- Override(s)
- Magic Methods
- Subclass
- Superclass
- Read class-based pseudocode and explain/identify the goal of the code [Continued from last week]
- Read existing Python code and connect it to corresponding pseudocode [Continued from last week]
In Class
In class today
- Motivating OO Programming
- The Slides I used
- The Code I used
- CreditCard.py [Code, a typical Python class]
- WalletRunner.py [Code, a simple program that uses several instances of the Credit Card class.
Beyond Class
- Schafer's Videos - The videos I used in my online version of the class
- Motivating Object Oriented Programming [Video, 6 minutes]
- The Concepts and Vocabulary of Objects [Video, 20 minutes]
- There is a lot of detail in here.
- Focus on the big picture and the general meaning behind the four pillars.
- Come to an understanding on the vocabulary of the four pillars.
- But don't worry about being a detailed expert.
- There is a lot of detail in here.
- Looking at code for the a Python class, version 1
- Walkthrough video [Video, 26 minutes]