add Programmyday form github
This commit is contained in:
26
LohnabrechnungMusterlösung/ExternerMitarbeiter.cs
Normal file
26
LohnabrechnungMusterlösung/ExternerMitarbeiter.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LohnabrechnungMusterlösung
|
||||
{
|
||||
internal class ExternerMitarbeiter : Mitarbeiter
|
||||
{
|
||||
private int projektStunden;
|
||||
private const int stundenLohn = 75;
|
||||
|
||||
public ExternerMitarbeiter(string? vorname, string? nachname, int projektStunden) : base(vorname, nachname)
|
||||
{
|
||||
this.vorname = vorname;
|
||||
this.nachname = nachname;
|
||||
this.projektStunden = projektStunden;
|
||||
GehaltBerechnung();
|
||||
}
|
||||
public void GehaltBerechnung()
|
||||
{
|
||||
gehalt = projektStunden * stundenLohn;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user