class Slop extends Destination {
public Slop(Hog h) {
h.takeTo(this);
}
}
class Main {
public static void main(String[] args) {
Hog h = new Hog();
if(h.isHungry()) {
h.takeTo(Slop s = new Slop(h));
System.out.println("This hog is taking himself to the SLOP!");
}
}
}
