From b0e95c33f16fb83525683d08c7cca761c213b40e Mon Sep 17 00:00:00 2001 From: cedri Date: Tue, 10 Jan 2023 12:35:03 +0100 Subject: [PATCH] =?UTF-8?q?Z=C3=A4hler=20zu=20Static=20geamcht,=20damit=20?= =?UTF-8?q?er=20auch=20mit=20jeder=20Instanz=20hochz=C3=A4hlt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Robbie-Management-System/src/domain/C3PO.java | 2 +- Robbie-Management-System/src/domain/R2D2.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Robbie-Management-System/src/domain/C3PO.java b/Robbie-Management-System/src/domain/C3PO.java index 4717795..bf781cb 100644 --- a/Robbie-Management-System/src/domain/C3PO.java +++ b/Robbie-Management-System/src/domain/C3PO.java @@ -19,7 +19,7 @@ public class C3PO extends Robotermodell implements Robot { /** * Der Zähler repräsentiert die iD. */ - private int zähler = 10000; + private static int zähler = 10000; /** * Der Konstruktor des C3PO Roboters besitzt einen Namen, eine iD diff --git a/Robbie-Management-System/src/domain/R2D2.java b/Robbie-Management-System/src/domain/R2D2.java index daac0c4..579c1cd 100644 --- a/Robbie-Management-System/src/domain/R2D2.java +++ b/Robbie-Management-System/src/domain/R2D2.java @@ -19,7 +19,7 @@ public class R2D2 extends Robotermodell implements Robot { /** * Der Zähler repräsentiert die iD. */ - private int zähler = 0; + private static int zähler = 0; /** * Der Konstruktor des R2D2 Roboters besitzt einen Namen, eine iD