Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1.  
  2. public class Neuve extends Voiture {
  3.  
  4.  
  5.     Option[] Options = new Option[4] ;
  6.    
  7.    
  8.     public Neuve () {}
  9.    
  10.     public Neuve (int  px , String mat , Option op1 , Option op2 , Option op3  , Option op4 ) // Demandé à la prof 1...n
  11.    
  12.     {
  13.         /*for ( int i =  0 ; i <= 9 ; i++ )   //références impossible ?
  14.         {
  15.             String s = "op" ;
  16.             String s2 = Integer.toString(i) ;
  17.             String s3 = s + s2 ;
  18.             this.Options[i] = s3 ;
  19.         }
  20.         */
  21.        
  22.         super( mat ,  px) ;
  23.        
  24.         this.Options[0] = op1 ;
  25.         this.Options[1] = op2 ;
  26.         this.Options[2] = op3 ;
  27.         this.Options[3] = op4 ;
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement