正文

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

(2023-03-11 02:48:25) 下一個

看看下麵這個鏈接吧,是不是又覺得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)
評論
目前還沒有任何評論
登錄後才可評論.