erweiterung

This commit is contained in:
2023-03-23 15:55:13 +01:00
parent 33e49f846c
commit 09c8eab938
39 changed files with 1167 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
namespace BeispielInterfaces
{
internal class Program
{
static void Main(string[] args)
{
IrgendwasMitFahren(new Auto());
IrgendwasMitFahren(new AmphibienFahrzeug());
}
static void IrgendwasMitFahren(IFahren fahren)
{
Console.WriteLine("Diese Mehtode benötigt etwas das fahren kann.");
fahren.Fahren();
}
}
}