In this course, you’ve learned when to use classes in your code. This knowledge is just as important as knowing how to write a class with attributes and methods. You’ve even learned about alternatives to inheritance.
SOLID is an acronym for five principles that you should use when thinking about object-oriented code. After this course, you’re well versed in the principles:
- The Single-Responsibility Principle (SRP)
- The Open-Closed Principle (OCP)
- The Liskov Substitution Principle (LSP)
- The Interface Segregation Principle (ISP)
- The Dependency Inversion Principle (DIP)
This course is the third in a three-part series. Part one is an introduction to class syntax, where you learn how to write a class and use its attributes and methods. Part two is about inheritance and class internals.
To learn more about the concepts from this course, check out:
- Python Descriptors: An Introduction
- Build Enumerations of Constants with Python’s
Enum
- Metaclasses in Python
- Callables: Python’s “functions” are sometimes classes
- SOLID on Wikipedia
- The SOLID Principles, Explained with Motivational Posters
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
alnah on Oct. 2, 2023
Another great course on OOP! Thanks!