Skip to content

Commit 25630e9

Browse files
dennisdoomenDennis DoomenCopilot
authored
Update AV1011 guideline (#348)
Split from #298. Co-authored-by: Dennis Doomen <dennis.doomen@greenchoice.nl> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9dc3c0e commit 25630e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_rules/1011.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ severity: 2
66
---
77
In other words, you should be able to pass an instance of a derived class wherever its base class is expected, without the callee knowing the derived class. A very notorious example of a violation of this rule is throwing a `NotImplementedException` when overriding methods from a base class. A less subtle example is not honoring the behavior expected by the base class.
88

9-
**Note:** This rule is also known as the Liskov Substitution Principle, one of the [S.O.L.I.D.](http://www.lostechies.com/blogs/chad_myers/archive/2008/03/07/pablo-s-topic-of-the-month-march-solid-principles.aspx) principles.
9+
**Note:** This rule is also known as the Liskov Substitution Principle, one of the [S.O.L.I.D.](https://en.wikipedia.org/wiki/SOLID) principles.

0 commit comments

Comments
 (0)