flâneur — a map of the web's best reading

SOLID Class Design: The Liskov Substitution Principle — Tom Dalling

tomdalling.com · 932 words · saved by 1 readers

This is part three of a five part series about SOLID class design principles by Robert C. Martin. The SOLID principles focus on achieving code that is maintainable, robust, and reusable. In this post, I will discuss the Liskov Substitution Principle.

This is part three of a five part series about SOLID class design principles by Robert C. Martin . The SOLID principles focus on achieving code that is maintainable, robust, and reusable. In this post, I will discuss the Liskov Substitution Principle. The Liskov Substitution Principle (LSP) : functions that use pointers to base classes must be able to use objects of derived classes without knowing it . When first learning about object oriented programming, inheritance is usually described as an “is a” relationship. If a penguin “is a” bird, then the Penguin class should inherit from the Bird c

Explore this link on the map →

related reading