需要多态 [英] Need for Polymorphism

查看:45
本文介绍了需要多态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,
我知道多态的概念,但是我找不到
的答案
Why we need polymorphism??

我在大多数采访中都面对的

有任何建议吗?

在此先感谢朋友:)

Hello friends,
I know the concept of polymorphism, but I was not able to find answer for

Why we need polymorphism??

Which I faced in most of the interviews

Any suggession?

Thanks in advance friends :)

推荐答案

维基百科 [ ^ ]有一个很好的解释.
Wikipedia[^] has quite a good explanation.


Plomorphisim:单一名称的多种形式

会有很多实时示例.

1.So因此,如果没有PolyMorphisim,我可以给出最佳答案,我们不能减小技术的规模.

a.方法重载

b.Method OverRiding属于此

最佳示例:一键式移动设备,我们一次可以访问3到4个设施.希望您能理解.


问候,

Anilkumar.D
Plomorphisim:Single Name Many Forms

There are lot of Real Time Examples will come.

1.So i can give the Best Answer With Out PolyMorphisim we can''t Reduce the Size of The Technology.

a.Method OverLoading

b.Method OverRiding comes under this

Best Example:Mobile in One key button we can acess More than 3 to 4 facilities at a time.I hope u understand.


Regards,

Anilkumar.D


另请参阅此CP文章
C#中的继承简介,多态性 [
See this CP article also
Introduction to inheritance, polymorphism in C#[^]


这篇关于需要多态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆