• 8
    In C++ :

    The first truck has wings, the second truck can float on water and the third track can be used as a bicycle
  • 7
    That's composition though...
  • 8
    Actually, should be the other way around, because inheritance means you "carry" everything from the parent class :)
  • 1
    Wish I inherit this much from my family
Add Comment