How to verify the Liskov substitution principle in an inheritance hierarchy?
Inspired by this answer:
What can go wrong if the Liskov substitution principle is violated?
I was following this highly voted question on possible violation of Liskov Substitution principle. I know what the Liskov Substitution principle is, but what is still not clear in my mind is what might go wrong if I as a developer do not think about the principle while writing object-oriented code.
Does Liskov Substitution Principle also apply to classes implementing an interface?
LSP states that classes should be substitutable for their base classes, meaning that derived and base classes should be semantically equivalent.
Are there any OO-principles that are practically applicable for Javascript?
Javascript is a prototype-based object oriented language but can become class-based in a variety of ways, either by:
Feature organization / authentication? [closed]
Closed 10 years ago.
How does the Law of Demeter apply to object-oriented systems regarding coupling and cohesion? [closed]
Closed 10 years ago.
Is it a basic principle, or highly desirable, to have class methods that return “$this” rather than a value?
I’ve really just begun to learn OOP. I started about a year ago and have written probably 15,000 lines of it. But I wrote it all with hardly any experience looking at other people’s OOP.
Abstracting out a module or using the Module Singleton directly?
I am working on a module which is dependent on other module for some functionality. Now the dependent module provides a lot of functionality and I need only few of them, hence got the idea to create an abstraction of the same in my module which is again be a singleton only.
Loose Coupling in Object Oriented Design
I am trying to learn GRASP and I found this explained (here on page 3) about Low Coupling and I was very surprised when I found this:
Loose Coupling in Object Oriented Design
I am trying to learn GRASP and I found this explained (here on page 3) about Low Coupling and I was very surprised when I found this: