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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!