Kontruktor gesetzt und id und idZähler implementiert. Unimplementierte
Methoden eingefügt. Vererbung mit Roboter.master
parent
64e39d28e8
commit
d59ee7395f
|
@ -1,5 +1,31 @@
|
|||
package Domäne;
|
||||
|
||||
public class C3PO {
|
||||
public class C3PO extends Roboter{
|
||||
String name;
|
||||
int id;
|
||||
static int idZähler = 10000;
|
||||
C3PO (String name){
|
||||
super (name);
|
||||
this.id = idZähler;
|
||||
idZähler++;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String speak(int[] zahlen) throws RobotException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] think(int[] zahlen) throws RobotException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue