What is polymorphism, what is it for, and how is it used?

前端 未结 28 2782
南笙
南笙 2020-11-21 07:08

What is polymorphism, what is it for, and how is it used?

28条回答
  •  误落风尘
    2020-11-21 07:38

    Polymorphism:

    Different execution according to the instance of the class, not the type of reference variable.

    An interface type reference variable can refer to any of the class instances that implement that interface.

提交回复
热议问题