Уровень 0 · материалов: 4
Сюда входят документы, описывающие теоретические принципы и правила проектирования классов в объектно-ориентированном программировании, и не входят документы по другим аспектам разработки ПО.
Общие признаки: полиморфизм, наследование классов, принципы SOLID, проектирование архитектуры ПО
Группа выше: ООП: концепции и принципы
Смысл: The main idea is to demonstrate how polymorphism allows developers to write flexible and extensible code by using abstract base classes and derived classes, enabling a single interface to handle different underlying forms.
An introductory guide to polymorphism in OOP using PHP examples to show how abstract classes enable code extensibility and uniform object handling.
Смысл: The main idea is to demystify the SOLID principles by correcting common misconceptions—particularly regarding SRP—and explaining them through the lens of dynamic polymorphism to create flexible, maintainable, and decoupled software architectures.
A guide to the SOLID principles that reframes them around dynamic polymorphism and 'actors' to help developers create more maintainable and flexible software.
Смысл: The main idea is that for a class hierarchy to be correctly designed in OOP, subclasses must be fully substitutable for their base classes without altering the program's expected behavior, otherwise the abstraction is broken.
The Liskov Substitution Principle dictates that derived classes must enhance rather than replace the behavior of base classes to ensure program stability and correct abstraction.
Смысл: The main idea is that in programming, class inheritance should be based on the specific business requirements and the model's purpose rather than on real-world biological taxonomies.
Inheriting a Penguin from a Bird depends entirely on the business context and the specific goals of the software model, not on biological facts.