Objects can contain other objects in them.
That can be quite deep.
It is not unusual to have objects within objects, contained in other objects.
Consider object Point1D
,
which represents a point in 1D.
It has a coordinate, represented by Coor1D
,
and it has a name, represented by String
.
That is, our 1D point contains two objects in it.
Try it yourself