aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Potato.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Potato.java b/src/Potato.java
index 7f8eb64..2145d79 100644
--- a/src/Potato.java
+++ b/src/Potato.java
@@ -7,6 +7,7 @@ public class Potato {
public static void main(String[] args) {
Potato potato = new Potato();
+ Glados glados = new Glados();
if (potato.prepare()) System.out.println("Of course potato is prepared and delicious.");
else System.out.println("Fatal error! How could potato not be delicious?");
}
@@ -39,4 +40,11 @@ public class Potato {
return this.name;
}
}
+
+ private static class Glados extends Potato {
+ public Glados()
+ {
+ System.out.println("Oh hi, how are you holding up? BECAUSE I’M A POTATO… clap clap clap… oh good, my slow clap processor made it into this thing, at least we have that.");
+ }
+ }
}