diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java index 73c6ff4..bf3a72b 100644 --- a/src/main/java/org/drtshock/Potato.java +++ b/src/main/java/org/drtshock/Potato.java @@ -29,6 +29,11 @@ public class Potato implements Tuber { public boolean isDelicious() { return true; // obviously, potatos are always delicious } + + @Override + public Tuber propagate() { + return new Potato(); + } private class Condiment { private final String name; @@ -52,4 +57,5 @@ public class Potato implements Tuber { return false; // robots are not delicious } } + } diff --git a/src/main/java/org/drtshock/Tuber.java b/src/main/java/org/drtshock/Tuber.java index 8b4bd5a..0fa5241 100644 --- a/src/main/java/org/drtshock/Tuber.java +++ b/src/main/java/org/drtshock/Tuber.java @@ -2,4 +2,5 @@ package org.drtshock; public interface Tuber { public boolean isDelicious(); + public Tuber propagate(); }