This commit is contained in:
LeterZP
2026-02-13 00:17:04 +03:00
commit da7c6aa397
23 changed files with 760 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package food;
import java.util.ArrayList;
public class Potato extends Vegetable{
public Potato() {
super();
}
@Override
public String toString() {
return "картофель";
}
@Override
public void peel() {
this.changeTaste(Math.random()*0.1);
}
}