Skip to content
Tech Interview Prep

OOP & Data Classes

Classes, inheritance, and the @dataclass shortcut for the common case of a class that's mostly just data.

  • Overview

    The OOP & Data Classes guide: how it works, the trade-offs interviewers ask about, and the mistakes to avoid.

    3 min read

  • OOP & Data Classes Interview Q&A

    Interview questions to answer out loud first, then compare with a model answer.

    25 Q&A

  • OOP & Data Classes MCQs

    Multiple-choice checks with five options and an explanation for every answer.

    25 MCQs