forked from IF-LK-2020/cheese-champion-1
23 lines
439 B
Java
23 lines
439 B
Java
/**
|
|
* Eine Maus, die am Mäusekampf (Cheese Champion) teilnimmt, hat eine Nummer
|
|
* und eine Stärke als Attribute.
|
|
*/
|
|
public class Maus {
|
|
|
|
private int number;
|
|
private int strength;
|
|
|
|
public Maus(int number, int strength) {
|
|
this.number = number;
|
|
this.strength = strength;
|
|
}
|
|
|
|
public int getStrength() {
|
|
return strength;
|
|
}
|
|
|
|
public int getNumber() {
|
|
return number;
|
|
}
|
|
}
|