大白目!C# Interface裏的每一個method都必須implement!

看看下麵這個鏈接吧,是不是又覺得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

請您先登陸,再發跟帖!