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
+17
View File
@@ -0,0 +1,17 @@
package food;
public class Garlic extends Vegetable{
public Garlic() {
super();
}
@Override
public String toString() {
return "чеснок";
}
@Override
public void peel() {
this.changeTaste(Math.random()*0.2);
}
}