implement Glados
This commit is contained in:
parent
a0df812a38
commit
124baa59c6
2 changed files with 8 additions and 0 deletions
BIN
5728853850_a3bbb14083_z.jpg
Normal file
BIN
5728853850_a3bbb14083_z.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue