Correct inheritance chain: part 4

  • 3
"I thought of objects as living cells or individual computers on a network, only able to communicate with messages," said the man who introduced the term "OOP". (Google it if you need to!) We suggest you do the same. Create a proper "inheritance chain" for the House, Cat, Dog, and Car classes.
You can't complete this task, because you're not signed in.
Comments(2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Kent HerveyLevel 13
6 May, 23:18
I was stumped...then I did what I thought made sense...and it was right
Daniel BuyinzaLevel 13 , Kampala
25 July 2019, 09:49
Could someone explain when and how one can implement the principle of Composition?