Files
SammelmappeOOP/Lohnabrechnung/Praktikant.cs
2024-07-25 15:47:46 +02:00

30 lines
784 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lohnabrechnung
{
internal class Praktikant : Lohnsklaven
{
private string? abteilung;
public Praktikant(string? abteilung, string? name, string? vorname)
{
this.abteilung = abteilung;
this.name = name;
this.vorname = vorname;
fußabtreter();
}
public void fußabtreter()
{
if (this.abteilung == "Entwicklung")
{ this.gehalt = 935; }
else if (this.abteilung == "Vertreib")
{ this.gehalt = 820; }
else if (this.abteilung == "Procuktion")
{ this.gehalt = 710; }
}
}
}