public User(int id, PinVAL pin, NameVAL name, SurnameVAL surname) { //Assignment id and probably increment id's counter if (id < 0) { _Id = _Id_counter++; } else { _Id = id; } _Pin = pin; _Name = name; _Surname = surname; }
public BasicUser(int id, PinVAL pin, NameVAL name, SurnameVAL surname, BankAccount bankAccount) : base(id: id, pin: pin, name: name, surname: surname) { _BankAccount = bankAccount; }
public Administrator(int id, PinVAL pin, NameVAL name, SurnameVAL surname) : base(id, pin, name, surname) { }
public void ChangeSurname(SurnameVAL surname) => _Surname = surname;