2017_2018:s2:td:td_classe_code
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
2017_2018:s2:td:td_classe_code [2018/02/19 09:26] – [Des modèles aux codes et vis-versa] blay | 2017_2018:s2:td:td_classe_code [2018/02/19 09:53] – [Je sais passer du dessin d'une association au code] blay | ||
---|---|---|---|
Line 97: | Line 97: | ||
private int power; | private int power; | ||
+ | //Accesseur en lecture : on lit la valeur de l' | ||
public int getPower() { | public int getPower() { | ||
return power; | return power; | ||
} | } | ||
+ | |||
+ | // | ||
public void setPower(int power) { | public void setPower(int power) { | ||
this.power = power; | this.power = power; | ||
Line 211: | Line 213: | ||
private int power; | private int power; | ||
- | // | + | // |
- | private Pilot[] pilots = new Pilot[0]; | + | private Pilot[] pilots; // = new Pilot[0]; |
Line 287: | Line 289: | ||
//Get the pilots of defiance | //Get the pilots of defiance | ||
- | Pilot[] | + | Pilot[] |
//Print the first pilot (only object reference) | //Print the first pilot (only object reference) | ||
- | System.out.println(" | + | System.out.println(" |
} | } | ||
2017_2018/s2/td/td_classe_code.txt · Last modified: 2018/02/19 14:44 by blay