Unified Modeling Language¶ L'héritage¶ L'héritage en UML peut se modélise comme suit. La relation 'Est Un'¶ ClasseParent-nom : String+getNom(); String+setNom(nom : String) : StringClasseEnfant1ClasseEnfant2ClasseParent-nom : String+getNom(); String+setNom(nom : String) : StringClasseEnfant1ClasseEnfant2 Pour une interface¶ ClasseParentnom : StringgetNom(); StringsetNom(nom : String) : StringClasseEnfantClasseParentnom : StringgetNom(); StringsetNom(nom : String) : StringClasseEnfant L'inclusion¶ La relation 'A Un'¶ Voituremodel : Stringannee : introues : Roue[]Voiture(model : String, annee : int): VoituregetModel() : StringsetModel(model : String) : voidgetAnnee() : intsetAnnee(annee : int) : voidserRoues(roues : Roue[]) : voidRouerayon : floatRoue(rayon : float) : RouegetRayon() : floatsetRayon(rayon : float) : void4..*Voituremodel : Stringannee : introues : Roue[]Voiture(model : String, annee : int): VoituregetModel() : StringsetModel(model : String) : voidgetAnnee() : intsetAnnee(annee : int) : voidserRoues(roues : Roue[]) : voidRouerayon : floatRoue(rayon : float) : RouegetRayon() : floatsetRayon(rayon : float) : void4..* Méthode et champs statique¶ Notez bien ici le souligné! UneClasseString idvoid uneMethode()UneClasseString idvoid uneMethode() plantuml