Subclass object with superclass funcionality

后端 未结 0 1754
广开言路
广开言路 2020-12-02 19:11

I\'m confused why this code works. The object "person" is declared as an instance of B with only the functionality of A, yet it somehow prints out hello twice. If

相关标签:
回答
  • 消灭零回复
提交回复
热议问题