Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package KlausurVorbereitung2;
- public class Rasenmäher
- {
- private int tank;
- private String name;
- private int aktTank = 0;
- public Rasenmäher(int tank, String name)
- {
- this.tank = tank;
- this.name = name;
- }
- public int getTank()
- {
- return tank;
- }
- public String toString()
- {
- return name;
- }
- public int getAktTank()
- {
- return aktTank;
- }
- public void setAktTank(int wert)
- {
- aktTank += wert;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement