大白目!C# Interface里的每一个method都必须implement!

来源: 蓝天白云外蒙古 2023-03-11 02:48:25 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (994 bytes)

看看下面这个链接吧,是不是又觉得IT人又被愚弄一把?

https://www.tutorialspoint.com/must-we-implement-all-the-methods-in-a-class-that-implements-an-interface-in-java

Gosh! how can be a stupid & inflexible software design like this!!! Imagine that there are 100 methods defined in an interface, but a programmer is just expecting to use 1 or 2 of the methods, then he or she would have to bother to find out and implement all 100 methods, regardless of whether to use or not...

How stupid such a software design like this! Imagine if there are 1000 methods defined in an interface, then nobody can implement the interface at all!

 

 

 

所有跟帖: 

要求置顶! -蓝天白云外蒙古- 给 蓝天白云外蒙古 发送悄悄话 蓝天白云外蒙古 的博客首页 (0 bytes) () 03/11/2023 postreply 04:56:39

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”