Logo Waldemar Muhl
  • Home
  • About
  • Recent Posts
  • Skills
  • Experience
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • Agile
  • Ai
  • Architecture
  • Audio
  • Azure
  • Cicd
  • Code
  • CodeOptimization
  • CodeUpdates
  • Coding
  • CodingPrinciples
  • ComputerScience
  • Csharp
  • Csharp10
  • Data
  • DataAnalysis
  • DataEngineering
  • DataScience
  • DesignPattern
  • DesignPatterns
  • DesignPrinciples
  • Dotnet
  • Dotnet6
  • Fun
  • Github
  • Hugo
  • Ide
  • Innovation
  • Interviews
  • Jetbrains
  • Leadership
  • Linux
  • Llm
  • MachineLearning
  • Ml
  • Music
  • Ndepend
  • News
  • Personal
  • Powershell
  • Programming
  • Reviews
  • SoftwareEngineering
  • Solution
  • Strategy
  • Sudoku
  • TechTalk
  • Tips
  • Troubleshooting
  • UnitTests
  • Windows
Hero Image
Liskov's Substitution Principle

The ‘L’ in SOLID design principles is for Liskov’s Substitution Principle. The gist of it is that objects of a superclass should be able to be replaced with objects of a subclass without altering the correctness of the program. In keeping with our zoo program, if we have a Bird class with a Fly() method, what happens to flightless birds? According to the LSP, if a program is written with a list of “Bird” objects and a “Penguin” object is added to the list, the program should still work correctly without any modification.

  • coding
  • codingPrinciples
Tuesday, January 17, 2023 Read
Navigation
  • About
  • Recent Posts
  • Skills
  • Experience
Contact me:
  • waltiplayer@gmail.com

Toha Theme Logo Toha
© 2024 Copyright Waldemar Muhl.
Powered by Hugo Logo