Liskov Substitution Principle (LSP) - LogRocket Blog
Briefly

The Liskov Substitution Principle (LSP), coined by Barbara Liskov, emphasizes that subclasses should be replaceable with their parent classes without altering the correctness of the code. This principle ensures that systems remain reliable and maintainable. Following LSP prevents system crashes when swapping subclasses and enhances extensibility, allowing new features to integrate seamlessly. By adhering to LSP, developers can confidently make modifications without extensive rewrites, fostering a sound structure in object-oriented design.
The Liskov Substitution Principle (LSP) ensures substituting one object for another doesn't break your system, enforcing logical structure and reliability.
Once you design a system that follows the LSP, you'll enjoy benefits like no surprise crashes and the ability to extend your code without fear.
Read at LogRocket Blog
[
|
]