Diagramme des objets PowerPoint PPT Presentation

presentation player overlay
1 / 1
About This Presentation
Transcript and Presenter's Notes

Title: Diagramme des objets


1
Diagramme des objets
  • Public class Vehicule
  • private Rectangle chassis
  • private Cercle roueAv, roueAr
  • private int x, y
  • public Vehicule( int _x, int _y )
  • x _x y _y
  • chassis new Rectangle(x,y,L,H)
  • roueAv new Cercle(xL/4,y,R)
  • roueAr new Cercle(xL3/4,y,R)
  • // Vehicule
  • Vehicule v new Vehicule(200,100)

v
x
y
200
100
0
0
chassis
roueAv
roueAr
null
null
null
x
x
210
230
0
y
y
100
100
0
r
r
5
5
0
x
y
200
100
0
0
l
h
L 40 H 20 R 5
40
20
0
0
Write a Comment
User Comments (0)
About PowerShow.com