Skip to content

Instantly share code, notes, and snippets.

@kolosovpetro
Created April 9, 2021 22:55
Show Gist options
  • Select an option

  • Save kolosovpetro/59d3d8ec45b1d4a81c09ec99a625d59f to your computer and use it in GitHub Desktop.

Select an option

Save kolosovpetro/59d3d8ec45b1d4a81c09ec99a625d59f to your computer and use it in GitHub Desktop.
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