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

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

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

 

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

 

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

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

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值