c# Programming Glossary: lsp
Can you explain Liskov Substitution Principle with a good C# example? http://stackoverflow.com/questions/4428725/can-you-explain-liskov-substitution-principle-with-a-good-c-sharp-example 05 13 read the discussion in the bottom of the comments LSP is about following the contract of the base class. You can for.. and the sub class allows the argument to be null also a LSP violation. Here is an example of a class structure which violates.. Here is an example of a class structure which violates LSP public interface IDuck void Swim contract says that IsSwimming..
|