Content deleted Content added
Line 81:
Also it seems that features of C# is listed, then it compared to java, which is a completely wrong approach since in many cases java has a better and more smart workaround for a problem without needing to have a feature for it. For example java never needs Explicit interface implementation, since it has co-variant return types. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/83.166.30.230|83.166.30.230]] ([[User talk:83.166.30.230|talk]]) 17:19, 14 December 2011 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->
The purpose of explicit interface implementation in C# is to hide functionality unless an instance is explicitly casted to the interface type, or to stack method or operator implementation that would otherwise clash (such as IList vs. IList<T> member implementation). So co-variant return types in Java is not equivalent. [[User:Dahvyd|Dahvyd]] ([[User talk:Dahvyd|talk]]) 06:28, 15 January 2012 (UTC)
|