public Doctor(string firstName, string secondName, DoctorDegree doctorDegree, Specialization specialization, Sex sex) : base(firstName, secondName, sex) { DoctorDegree = doctorDegree; Specialization = specialization; }
public override string ToString() { var symbol = DoctorDegree.GetAttributeOfType <SymbolAttribute>(); return($"{symbol.Symbol} {FirstName} {SecondName}"); }