implement Glados

This commit is contained in:
Iaccidentally
2013-11-09 18:50:28 -05:00
parent a0df812a38
commit 124baa59c6
2 changed files with 8 additions and 0 deletions

View File

@@ -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<54> clap clap clap<61> oh good, my slow clap processor made it into this thing, at least we have that.");
}
}
}