using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LohnabrechnungMusterlösung { internal class Department { protected string? bezeichnung; protected double gehalt; public double GetGehalt() { return gehalt; } } class Sales : Department { public Sales() { bezeichnung = "Vertrieb"; gehalt = 820; } } class Production : Department { public Production() { bezeichnung = "Produktion"; } } class Development : Department { public Development() { bezeichnung = "Entwicklung"; gehalt = 935; } } }