Glossary

Forgetting `super().__init__()`

parent attributes never get set, causing `AttributeError` later 2. **Using inheritance when composition is appropriate** — a Stack is not a list 3. **Deep hierarchies** — keep to 2-3 levels; deeper trees are hard to debug 4. **Breaking Liskov** — subclasses should work everywhere their parent works

Learn More

Related Terms