예제 #1
0
 public Doctor(string firstName, string secondName, DoctorDegree doctorDegree, Specialization specialization, Sex sex)
     : base(firstName, secondName, sex)
 {
     DoctorDegree   = doctorDegree;
     Specialization = specialization;
 }
예제 #2
0
        public override string ToString()
        {
            var symbol = DoctorDegree.GetAttributeOfType <SymbolAttribute>();

            return($"{symbol.Symbol} {FirstName} {SecondName}");
        }