add Programmyday form github
This commit is contained in:
25
LohnabrechnungMusterlösung/Praktikant.cs
Normal file
25
LohnabrechnungMusterlösung/Praktikant.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user