Use abstract class as reference to subclass object in java. Is it the same as with normal classes?

后端 未结 0 901
太阳男子
太阳男子 2021-01-04 03:08

If we use a non-abstract class to reference a subclass object (which inherits from superclass) we restrict the methods of the subclass object to the methods of the superclas

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