#Object-Oriented-Design
2 notas · última:
Liskov Substitution Principle in C# with Example
The page explains LSP with a Bird/Ostrich example, shows how overriding Fly in Ostrich breaks substitution, and refactors the design around IBird and Move so each bird type behaves correctly.
Devs: Don’t Just Read About Design Patterns, Implement Them
The post argues that design patterns are more useful as examples you build than as theory you read. A contrived C# animal-mission setup shows how decoupling lets missions, heroes, and lairs vary independently.
