Week 2: Object Oriented Programming
Activities
- Recording of in-class discussion
- Modifying the CreditCard to explain the idea behind magic methods
- Walkthrough video [Video, 12 minutes]
- MagicCreditCard.py [Code]
- List of Magic Methods
- The Fraction Class (different code from what will be in your textbook. Same basic idea)
- Walkthrough video [Video, 14 minutes]
- Schafer's version of Fraction.py [Code]
- Slightly ImprovedFraction.py [Code]
- Checking your understanding of OOP vocabulary
- Consider a couple of non-programming scenarios that model OOP pillars.