Untitled

 avatar
user_9243973
plain_text
a year ago
497 B
2
Indexable
Never
public class test {

	public static void main(String[] args) {

    Robot [] tabR = new Robot[10];
    
    
    for(int i=0;i<tabR.length/2;i++)
    {
    	tabR[i]= new Robot("R"+i);
    }
    
    for(int i=tabR.length/2;i<tabR.length;i++)
    {
    	tabR[i]= new RobotNG("R"+i);
    }
    
    for(int i=0;i<tabR.length/2;i++)
    {
    	tabR[i].affiche();
    }
    
    for(int i=tabR.length/2;i<tabR.length;i++)
    {
    	tabR[i].affiche();
    }
    

	}

}