DevShed: Violating the Liskov Substitution Principle - PHP DevShed: Violating the Liskov Substitution Principle - PHP

- (phpdeveloper) - 11 months ago...

On DevShed today there's a new tutorial posted talking about the Liskov Substitution Principle (part of the SOLID set of principles) and how to use it in a practical example using some object-oriented PHP. However, not all is bad with Inheritance. When used properly it can be a great ally. The question that comes to mind is: how can you keep away from building derivatives that behave totally different from the chosen abstraction(s)? Here's exactly where the Liskov Substitution P...

see complete article.

Similar recent news articles...

Older news

Hot Topics