13.07.2015 Views

DIAGRAMME DE CLASSES - wwwdfr

DIAGRAMME DE CLASSES - wwwdfr

DIAGRAMME DE CLASSES - wwwdfr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module B9-1 : Sensibilisation à l’UMLTravaux dirigés : Diagramme de classes (exercices)public class Ellipse extends Forme{protected float a ;protected float b ;protected float angle ;protected Point centre ;public Point getCentre() ;public float getAngle() ;}public class Cercle extends Forme{protected float radius ;protected Point centre ;public Point getCenter() ;public float getRadius() ;}public class Point extends Forme{protected float x ;protected float y ;protected float z ;public float getX() ;public float getY() ;public float getZ() ;}abstract public class ListePoints extends Forme{protected Arraylist points = new Arraylist() ;public int getComptePoints() ;public Point getPoint(int i) ;public ArrayList getPoints() ;}public class Polygone extends ListePoints{}public class Ligne extends ListePoints{}public class Frontière extends Forme{}public class ListeFormes extends Forme{protected Arraylist formes = new Arraylist() ;public void ajouterForme(Forme forme) ;public void supprimerForme(int i) ;}Page 2 sur 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!