Tech_Interview_Prep

OOP & Data Classes

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

Q1.What does the `@dataclass` decorator automatically generate for a class?

Q2.What is Python's Method Resolution Order (MRO) used for?

Q3.What does a leading double underscore (`__attr`) on an attribute name do in Python?

Q4.By default, are two `@dataclass` instances with identical field values equal (`==`)?