Content deleted Content added
I was deleting Scala from the table "The following table summarizes the rules for overriding methods in the languages discussed above." As far as I know, Scala non-generic (concrete) parameters have no contravariance, and no covariance either (except return type). Scala supports contravariance (and covariance) with generic parameters (in generic classes and generic methods) and with abstract types (for example: type T <: A). |
→Summary of variance and inheritance: no citations |
||
Line 302:
=== Summary of variance and inheritance ===
{{uncited section|date=June 2024}}
The following table summarizes the rules for overriding methods in the languages discussed above.
|