Created
April 9, 2021 22:55
-
-
Save kolosovpetro/c1d13f96aa5260aee32d4a6a6db6de22 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, IFlyable, ISwimable | |
| { | |
| public void Drive() => Console.WriteLine("Driving..."); | |
| public void Fly() => Console.WriteLine("Flying...."); | |
| public void Swim() => Console.WriteLine("Swimming..."); | |
| } | |
| internal interface IDrivable | |
| { | |
| void Drive(); | |
| } | |
| internal interface IFlyable | |
| { | |
| void Fly(); | |
| } | |
| internal interface ISwimable | |
| { | |
| void Swim(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment