Created
April 9, 2021 22:55
-
-
Save kolosovpetro/59d3d8ec45b1d4a81c09ec99a625d59f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace SolidRules.ISP | |
| { | |
| public class DrivableBad : IDrivable | |
| { | |
| public void Drive() => Console.WriteLine("Driving..."); | |
| public void Fly() => Console.WriteLine("Flying...."); | |
| public void Swim() => Console.WriteLine("Swimming..."); | |
| } | |
| internal interface IDrivable | |
| { | |
| void Drive(); | |
| void Fly(); | |
| void Swim(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment