Challenge 2: Aggregate `Em All!
In this exercise, you have to perform aggregation between 3 classes.
We'll cover the following
Problem Statement
You have to implement 3 classes:
class School {
}
class Team {
}
class Player {
}
in such a way 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.