This commit is contained in:
wbs
2026-08-11 10:54:13 +02:00
parent 82b48974c5
commit a1b96f6869
54 changed files with 999 additions and 30 deletions
+22
View File
@@ -0,0 +1,22 @@
namespace Tag_02_Unterricht;
public class StatischeFelder
{
public string name = "Alice"; // Instanz-Variable
public static string nachname = "Alison"; // statische Variable
public static void DoSomethingStatic() // statische Methode
{
Console.WriteLine("DoSomethingStatic");
}
private void DoSomething() // Instanz-Methode
{
Console.WriteLine("DoSomething");
}
public void DoSomethingPublic() // Instanz-Methode
{
DoSomething();
}
}