getGesamtEinkommen geändert

This commit is contained in:
Ma
2022-12-07 18:33:30 +01:00
parent 01fc54a390
commit 82173e4c2a
5 changed files with 138 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
* abgeleitete Eigenschaft und wird dementsprechend in der Methode 'getAnzahlEinwohner'
* berechnet.
*
* @author Gubitz, Wöstemeyer, Pfannenstiel, Maier, Vigier :D
* @author Vigier
*/
public class Gebiet implements GebietInterface {
private int jahr;
@@ -40,7 +40,7 @@ public class Gebiet implements GebietInterface {
@Override
public long getGesamtEinkommen() {
if(getGesamtEinkommen() == 0){
if(gesamtEinkommen == 0){
return -1;
}

View File

@@ -1,4 +1,4 @@
public class GebietsMoc implements GebietInterface{
public class GebietMock implements GebietInterface{
@Override
public int getjahr() {