Skip to content

Commit 3f61b5a

Browse files
authored
Update AV1004: Use an interface rather than a base class to support multiple implementations (#346)
1 parent eeeda74 commit 3f61b5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_rules/1004.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ rule_category: class-design
44
title: Use an interface rather than a base class to support multiple implementations
55
severity: 3
66
---
7-
If you want to expose an extension point from your class, expose it as an interface rather than as a base class. You don't want to force users of that extension point to derive their implementations from a base class that might have an undesired behavior. However, for their convenience you may implement a(n abstract) default implementation that can serve as a starting point.
7+
If you want to expose an extension point from your class, expose it as an interface rather than as a base class. You don't want to force users of that extension point to derive their implementations from a base class that might have an undesired behavior.

0 commit comments

Comments
 (0)