当我看到时,我总是感到困惑:
Parent ref = new Child();
其中Child类扩展Parent.
ref
Child ref = new Child();
c# oop polymorphism inheritance
c# ×1
inheritance ×1
oop ×1
polymorphism ×1