add Programmyday form github
This commit is contained in:
25
Lohnabrechnung/ExternerMitarbeiter.cs
Normal file
25
Lohnabrechnung/ExternerMitarbeiter.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lohnabrechnung
|
||||
{
|
||||
internal class ExternerMitarbeiter : Lohnsklaven
|
||||
{
|
||||
private int projektstunden;
|
||||
|
||||
public ExternerMitarbeiter(int projektstunden, string? name, string? vorname)
|
||||
{
|
||||
this.projektstunden = projektstunden;
|
||||
this.name = name;
|
||||
this.vorname = vorname;
|
||||
Berechnung();
|
||||
}
|
||||
public void Berechnung()
|
||||
{
|
||||
this.gehalt = projektstunden * 75;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user