来源:https://stackoverflow.com/questions/28120111/why-can-i-create-an-variable-with-type-of-parent-class 标签 java oop inheritance polymorphism extends