25

Hehe....Real life example

Comments
  • 2
    'Extends' makes more sense here than inheritance
  • 1
    I think an ArrayCollection accepting Truck instances, extending Truck would be more appropriate 😛
  • 1
    Brah, it's composition...
  • 1
    It looks more like containerization. A has B and B has C.
  • 2
    I see a LinkedList<Truck>[]
Add Comment