Question
Code 1 #include #include using namespace std; struct Player { string name; string nationality; int caps; string position; double fee; }; int main() { Player
Code 1 #include #include using namespace std; struct Player { string name; string nationality; int caps; string position; double fee; }; int main() { Player LeicesterCity; Player England; cout > LeicesterCity.caps; cout > LeicesterCity.fee; cout > England.caps; cout Using the code in Task 2 Program Code.pdf above complete the following tasks:
2.1. Identify the nimber of class in the code.
2.2 Identify the member variables and their associated data type for each class.
2.3 With the code draw a class hierarchy diagram of the code in Task 2 Program Code showing the inheritance chain like the image below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started