Covariance and Contravariance (computer science)
Covariance and Contravariance (computer
Autor: | Frederic P. Miller / Agnes F. Vandome / John McBrewster |
---|---|
Verfügbarkeit: | Auf Lager. |
Artikelnummer: | 642440 |
ISBN / EAN: | 9786130630812 |
Zusatzinformation
- Autor: Frederic P. Miller / Agnes F. Vandome / John McBrewster
- Verlag: Alphascript Publishing
- ISBN / EAN: 9786130630812
- Bindung: Taschenbuch
Produktbeschreibung
These terms come from category theory, which has a general definition of covariance and contravariance that unifies the computer science definition of these terms with the definition used in vector spaces. This distinction is important in considering argument and return types of methods in class hierarchies. In object-oriented languages such as C++, if class B is a subtype of class A, then all member functions of B must return the same or narrower set of types as A; the return type is said to be covariant. On the other hand, the member functions of B must take the same or broader set of arguments compared with the member functions of A; the argument type is said to be contravariant.
Sie könnten auch an folgenden Produkten interessiert sein
-
Regelungstheoretische Analyse- und Entwurfsansätze für unteraktuierte mechanische Systeme
Knoll:Regelungstheoretische Analyse- un Als Taschenbuch gegenüber Hardcover 18,52 €
In den Warenkorb18,52 € -
Co-Composting Of Organic Solid Waste And Sewage Sludge
Fei-Baffoe:Co-Composting Of Organic Sol Als Taschenbuch gegenüber Hardcover 49,90 €
In den Warenkorb49,90 € -
Synthesis and Conformational Study of Liquid Crystal Materials
Naser:Synthesis and Conformational Stud Als Taschenbuch gegenüber Hardcover 54,90 €
In den Warenkorb54,90 €