static void Main(string[] args) { IMaths maths = MathsFactory.CreateMaths(); Console.WriteLine(maths.Addieren(1, 5)); Console.WriteLine(maths.Subtrahieren(10, 9)); IMathsExtended mathsExtended = MathsFactory.CreateMathsExtended(); Console.WriteLine(mathsExtended.Dividieren(12, 3)); Console.WriteLine(mathsExtended.Multiplizieren(9, 4)); IMathsQuadrat mathsQuadrat = MathsFactory.CreateMathsQuadrat(); mathsQuadrat.Quadrieren(5); Console.ReadKey(); }