大白目!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

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”