-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathFarmer.java
More file actions
38 lines (29 loc) · 894 Bytes
/
Farmer.java
File metadata and controls
38 lines (29 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.zipcodewilmington.froilansfarm;
import com.zipcodewilmington.froilansfarm.interfaces.Botanist;
import com.zipcodewilmington.froilansfarm.interfaces.Edible;
import com.zipcodewilmington.froilansfarm.interfaces.Rideable;
import com.zipcodewilmington.froilansfarm.interfaces.Rider;
import com.zipcodewilmington.froilansfarm.plants.Crop;
public class Farmer extends Person implements Botanist, Rider {
public Farmer(String name) {
super(name);
}
@Override
public void plant(CropRow cropRow, Crop crop) {
cropRow.store(crop);
}
@Override
public void makeNoise() {
System.out.println("howdy");
}
@Override
public void mount(Rideable rideable) {
}
@Override
public void dismount(Rideable rideable) {
}
@Override
public void eat(Edible edible) {
System.out.println("yum yum");
}
}