Just wondering if there is a simple way to log all of the hospital employees. HospitalEmployees being the parent class and doctors and nurse as sub classes. Then I have one doctor and one nurse.
Is there a built-in way to do it or should I make a method? How would I check if a class has a parent class?