public static Human Create(int magicNumber) { Human newHuman = new Human(); newHuman.Age = magicNumber; if (magicNumber % 2 == 0) { newHuman.FullName = "TheBadGuy"; newHuman.Sex = Sex.Male; } else { newHuman.FullName = "The Hot Chick"; newHuman.Sex = Sex.Female; } return newHuman; }
public static Person CreatePerson(int personAge) { Human newHuman = new Human(); newHuman.Age = personAge; if (personAge % 2 == 0) { newHuman.FullName = "Cool Bro"; newHuman.Sex = Sex.Male; } else { newHuman.FullName = "Hot Chick"; newHuman.Sex = Sex.Female; } return newHuman; }
public Student(Human inputHuman, float inputGrade) : base(inputHuman.firstName, inputHuman.lastName) { this.grade = inputGrade; }
public Worker(Human inputHuman, uint inputSalary, uint inputHours) : base(inputHuman.firstName,inputHuman.lastName) { this.WeekSalary = inputSalary; this.WorkHoursPerDay = inputHours; }