What I'm trying to do is create multiple Objects of the same class, each with their own set of values (e.g. a name, an address and a personal number) saved in an array, and later add it to a list of employees but when I try to create an Object the name and address stay as null. This is what I have so far:
abstract class Person
{
static public string _name;
static public string _adresse;
}
class Student : Person
{
#region fields
public string _personalnumber = Fakultät.generate_personalnr();
#endregion
//initiating the array witht the Infos about the Student
public string[] StudentenA = new string[3] { Person._name, Person._address, personalnumber };
#region const
public Studenten (string name, string address)
{
Person._name = name;
Person._address = address;
}
#endregion
Thanks in advance for your help. Bearowl
edit 1: changed the variables to all English (all German in original Project)