add Programmyday form github
This commit is contained in:
28
LohnabrechnungMusterlösung/Mitarbeiter.cs
Normal file
28
LohnabrechnungMusterlösung/Mitarbeiter.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LohnabrechnungMusterlösung
|
||||
{
|
||||
internal class Mitarbeiter
|
||||
{
|
||||
protected string? vorname;
|
||||
protected string? nachname;
|
||||
protected double gehalt;
|
||||
|
||||
public Mitarbeiter(string? vorname, string? nachname)
|
||||
{
|
||||
this.vorname = vorname;
|
||||
this.nachname = nachname;
|
||||
}
|
||||
public void DatenAusgabe()
|
||||
{
|
||||
Console.WriteLine($"Vorname: {this.vorname}");
|
||||
Console.WriteLine($"Nachname: {this.nachname}");
|
||||
Console.WriteLine($"Gehalt: {this.gehalt:C2}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user