From d59ee7395fdc56784932327c41d37ad1bd93525b Mon Sep 17 00:00:00 2001 From: Milan Lukic <2122158@stud.hs-mannheim.de> Date: Tue, 3 Jan 2023 15:04:32 +0100 Subject: [PATCH] =?UTF-8?q?Kontruktor=20gesetzt=20und=20id=20und=20idZ?= =?UTF-8?q?=C3=A4hler=20implementiert.=20Unimplementierte=20Methoden=20ein?= =?UTF-8?q?gef=C3=BCgt.=20Vererbung=20mit=20Roboter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Roboterfabrik/src/Domäne/C3PO.java | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Roboterfabrik/src/Domäne/C3PO.java b/Roboterfabrik/src/Domäne/C3PO.java index c1f2cbf..aadc47c 100644 --- a/Roboterfabrik/src/Domäne/C3PO.java +++ b/Roboterfabrik/src/Domäne/C3PO.java @@ -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; + } }