开发者

can we implement polymorphism using interface in c#?

开发者 https://www.devze.com 2022-12-27 08:28 出处:网络
can we implement polymorphism using interface in c开发者_高级运维#? any example .Yes. E.g. See the way many collections in the framework implement IList<T> so code that only depends on that int

can we implement polymorphism using interface in c开发者_高级运维#? any example .


Yes.

E.g. See the way many collections in the framework implement IList<T> so code that only depends on that interface can use any of those collections.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号