首页 > 其他 > 详细

多态是什么:抽象类型可以泛化为多样化不同的类型----多态的本意:是抽象类型具体实现的多样化---抽象类型的指代作用

时间:2019-03-25 19:14:50      阅读:111      评论:0      收藏:0      [点我收藏+]

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

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

 

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

 

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

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

 

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

多态是什么:抽象类型可以泛化为多样化不同的类型----多态的本意:是抽象类型具体实现的多样化---抽象类型的指代作用

原文:https://www.cnblogs.com/feng9exe/p/10595539.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!