Question: Create a class named Athlete with fields for name, age and sport. Create two subclasses of Athlete, one named Professional with fields for team and

Create a class named Athlete with fields for name, age and sport. Create two subclasses of Athlete, one named Professional with fields for team and year turned professional: and one named Amateur with fields for university attended and division conference (e.g. PacWest, Big 10). Demonstrate objects of Amateur and Professional in a simple program that instantiates and displays the attributes for one of each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
