Challenge 2: Implementing a Sports Team!
In this exercise, you have to perform aggregation between 3 classes.
We'll cover the following
Problem statement
You have to implement 3 classes, School
, Team
, and Player
, such that an instance of a School
should contain instances of Team
objects. Similarly, a Team
object can contain instances of Player
class.
Consider this diagram for clarification:
Get hands-on with 1400+ tech skills courses.