Initial Commit (w/ Ch1Duck first implementation)

This commit is contained in:
2025-10-30 14:46:26 +01:00
commit 695fb26ce4
11 changed files with 129 additions and 0 deletions

17
Ch1Duck/Fly.cs Normal file
View File

@@ -0,0 +1,17 @@
namespace Ch1Duck;
public interface IFlyBehaviour {
void Fly();
}
public class FlyWithWings: IFlyBehaviour {
public void Fly() {
Console.WriteLine("I'm flying!");
}
}
public class FlyNoWay: IFlyBehaviour {
public void Fly() {
Console.WriteLine("I can't fly");
}
}