Liskov Substitution Principle | miafish
what is Liskov Substitution principle
Child classes should never break the parent class' type definitions. In other way, sub-types must be substitutable for their base types. As simple as that, a subclass should override the parent class' methods in a way that does not break functionality from a client's point of view
Rectangle and Square Examples:
Read full article from Liskov Substitution Principle | miafish
No comments:
Post a Comment