Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Neuve extends Voiture {
- Option[] Options = new Option[4] ;
- public Neuve () {}
- public Neuve (int px , String mat , Option op1 , Option op2 , Option op3 , Option op4 ) // Demandé à la prof 1...n
- {
- /*for ( int i = 0 ; i <= 9 ; i++ ) //références impossible ?
- {
- String s = "op" ;
- String s2 = Integer.toString(i) ;
- String s3 = s + s2 ;
- this.Options[i] = s3 ;
- }
- */
- super( mat , px) ;
- this.Options[0] = op1 ;
- this.Options[1] = op2 ;
- this.Options[2] = op3 ;
- this.Options[3] = op4 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement