Skip to main content
added 86 characters in body
Source Link
Taylor Leese
  • 52.6k
  • 29
  • 115
  • 142

Yes, b.move() would be the same as calling a.move() in your scenario. This is polymorphismpolymorphism in action.

Yes, b.move() would be the same as calling a.move() in your scenario. This is polymorphism in action.

Yes, b.move() would be the same as calling a.move() in your scenario. This is polymorphism in action.

Source Link
Taylor Leese
  • 52.6k
  • 29
  • 115
  • 142

Yes, b.move() would be the same as calling a.move() in your scenario. This is polymorphism in action.