Creation of simple classes #7

Merged
schrom01 merged 4 commits from creation_of_simple_classes into main 2022-04-29 10:41:39 +02:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 3dfa71dab1 - Show all commits

View File

@ -1,7 +1,7 @@
package ch.zhaw.projekt2.turnierverwaltung; package ch.zhaw.projekt2.turnierverwaltung;
public class Game { public class Game {
private int participant1, Participant2; private Participant participant1, Participant2;
private int points1, points2; private int points1, points2;
private Location location; private Location location;
@ -29,19 +29,19 @@ public class Game {
this.points2 = points2; this.points2 = points2;
} }
public int getParticipant1() { public Participant getParticipant1() {
return participant1; return participant1;
} }
public void setParticipant1(int participant1) { public void setParticipant1(Participant participant1) {
this.participant1 = participant1; this.participant1 = participant1;
} }
public int getParticipant2() { public Participant getParticipant2() {
return Participant2; return Participant2;
} }
public void setParticipant2(int participant2) { public void setParticipant2(Participant participant2) {
Participant2 = participant2; Participant2 = participant2;
} }
} }