Diagramme des objets - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

Diagramme des objets

Description:

Diagramme des objets. Public class Vehicule. private Rectangle chassis; private Cercle roueAv, roueAr; private int x, y; public Vehicule( int _x, int _y ) ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 2
Provided by: denisb
Category:
Tags: des | diagramme | objets

less

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