This commit is contained in:
2025-01-10 05:01:59 +03:00
parent b050db6dce
commit a5b35aabb3
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,21 @@
public class BandBooster {
private String name;
private int boxesSold;
public BandBooster (String name) {
this.name = name;
this.boxesSold = 0;
}
public String getName() {
return name;
}
public void updateSales (int addBox) {
boxesSold = boxesSold + addBox;
}
public String toString() {
return name + " sold: " + boxesSold + " boxes!";
}
}