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

 

 

 

登录后才可评论.