Covariance and contravariance (computer science): Difference between revisions

Content deleted Content added
extended a bit
Java: extend
Line 15:
 
===Java===
Return type covariance is implemented in the [[Java programming language|Java]] programming language version 1.5. Parameter types have to be exactly the same (invariant) for method overriding, otherwise the method is overloaded with a parallel definition instead.
 
==See also==