zoukankan      html  css  js  c++  java
  • 多态是什么:抽象类型可以泛化为多样化不同的类型----多态的本意:是抽象类型具体实现的多样化---抽象类型的指代作用

    多态的本意:是抽象类型具体实现的多样化;

    然后对具体类型的行为,作出或相同或不同的解释;

    多态是一个类型理论的名词;对抽象类型的行为作出了解释;

    抽象类型的指代作用举例:

    这个牛是一头白牛,这个牛(这头白牛)........

    The most commonly recognised major classes of polymorphism are:

    • Ad hoc polymorphism: defines a common interface for an arbitrary set of individually specified types.
    • Parametric polymorphism: when one or more types are not specified by name but by abstract symbols that can represent any type.

    https://en.wikipedia.org/wiki/Polymorphism_(computer_science)#Static_and_dynamic_polymorphism

  • 相关阅读:
    JSP第三章
    JSP第二章
    JSP第一章
    异常
    七种设计原则
    非泛型集合
    .NET第一章
    航班预定系统
    JSP数据交互(二)
    JSP数据交互(一)
  • 原文地址:https://www.cnblogs.com/feng9exe/p/10595539.html
Copyright © 2011-2022 走看看