Object-oriented foundations: class syntax, __init__, instance vs class attributes, methods, and self. Modeling entities as objects without over-engineering. Introduction to inheritance: extending classes, super(), and when composition fits better than deep hierarchies in ML-style codebases.