26 lines
637 B
C#
26 lines
637 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LohnabrechnungMusterlösung
|
|
{
|
|
internal class Praktikant : Mitarbeiter
|
|
{
|
|
private Department abteilung;
|
|
|
|
public Praktikant(string? vorname, string? nachname, Department abteilung) : base(vorname, nachname)
|
|
{
|
|
this.vorname = vorname;
|
|
this.nachname = nachname;
|
|
this.abteilung = abteilung;
|
|
GehaltBerechnen();
|
|
}
|
|
public void GehaltBerechnen()
|
|
{
|
|
this.gehalt = abteilung.GetGehalt();
|
|
}
|
|
}
|
|
}
|