Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The teacher asked us to do the following. You will create a hierarchy for sports

ID: 3647073 • Letter: T

Question

The teacher asked us to do the following.

You will create a hierarchy for sports players with the super class being the general player class and the sub classes containing more specific information about players in a specific sport. You are welcome to implement the sub classes for your favorite sports. The super class will contain non-specific information such as height, weight, age, sex and yearly salary. The sub class will contain information specific to one sport. The main must create and test objects of both sub-classes.

I got some of it, but am lost for the details. please tell me what you would do for this assignment.

Explanation / Answer

// multiple inheritance #include using namespace std; class CPolygon { protected: int width, height; public: void set_values (int a, int b) { width=a; height=b;} }; class COutput { public: void output (int i); }; void COutput::output (int i) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote