I dont understand the problem?
Hello, I'm a beginner in C# and i wrote this code, but unfortunately, every time I start it it says StackOverflow. So how can I fix the problem??? and here words translated to English (from German) so that everyone understands it: Tier: animal anzahlBeine: numberOfLegs weichheitDesFells: fluffinesOfThePelt alter: age Affe: ape :::::: this is a code I wrote to understand things better and has no use whatsoever :::::: namespace Teste_Test { public class Tier { public int anzahlBeine { get; set; } public string name { get; set; } public int weichheitDesFells { get { return anzahlBeine; } set { weichheitDesFells = value; } } public double alter { get { return alter; } set { alter = value; } } public Tier(int anzahlBeine, int weichheitDesFells, string name, double alter) { this.anzahlBeine = anzahlBeine; this.weichheitDesFells = weichheitDesFells; this.name = name; this.alter = alter; Console.WriteLine("hello"); } } public class Affe : Tier { public Affe(int anzahlBeine, int weichheitDesFells, string name, double alter) : base (anzahlBeine, weichheitDesFells, name, alter) { } } class Program { static void Main(string[] args) { Affe ulu = new Affe(anzahlBeine: 2, weichheitDesFells: 3, name: "ulu", alter: 13); ulu.anzahlBeine = 2; ulu.weichheitDesFells = 2; Console.WriteLine(ulu.weichheitDesFells); } } }