Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Associated type » ?

Definition 8.10 University Computer Science — Year 2 · Chapitre 8 — Traits and Generics

An associated type is a type named inside a trait, type Output;, that each implementation fixes. Add declares type Output, the type of a + b; Iterator declares type Item, the type of the elements it yields.

Lire dans le chapitre →