Add 'Programming/ProgLab3/' from commit 'da7c6aa397ab3d503b9328211e5aaa932c071524'

git-subtree-dir: Programming/ProgLab3
git-subtree-mainline: 329aa90447
git-subtree-split: da7c6aa397
This commit is contained in:
LeterZP
2026-02-13 20:08:50 +03:00
23 changed files with 760 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package food;
public class Beetroot extends Vegetable{
public Beetroot() {
super();
}
@Override
public String toString() {
return "свёкла";
}
@Override
public void peel() {
this.changeTaste(Math.random()*0.1);
}
}