add Programmyday form github
This commit is contained in:
25
Simpsons/Familie.cs
Normal file
25
Simpsons/Familie.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Simpsons
|
||||
{
|
||||
internal class Familie
|
||||
{
|
||||
protected string? vorname;
|
||||
protected string? nachname = " Simpsons";
|
||||
protected string? hautfarbe = " Gelb";
|
||||
protected string? wohnort = " Evergreen Terrace 742, Springfeield";
|
||||
protected int zähler;
|
||||
|
||||
public void vorstellung()
|
||||
{
|
||||
Console.WriteLine($"Vorname: {this.vorname}");
|
||||
Console.WriteLine($"Nachname: {this.nachname}");
|
||||
Console.WriteLine($"Hautfarbe: {this.hautfarbe}");
|
||||
Console.WriteLine($"Wohnort: {this.wohnort}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user