Fitness Tracker Object-Oriented Programming Example
At a glance
- Price Free to watch, no sign-up
- Runtime 1 h 19 min
- Topics Computer Science
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 20 of 25
- Language English
Ana Bell teaches this lecture from MIT's 6.100L Introduction to CS and Programming using Python, using a fitness tracker as the running example to explain object-oriented programming. She contrasts two perspectives on the same code: implementing a new object type by writing a class, versus using that class as a client in a program. The lecture covers grouping state and behavior together inside objects, defining methods, and building up a working fitness tracker example step by step on screen. Bell also addresses the limits of the paradigm, noting that object-oriented design is a useful tool for modularizing code but can be overused if applied indiscriminately. The session runs just over an hour and keeps closely to live coding and explanation rather than slides, typical of the course's hands-on style.