¿Cómo matar a un elefante?
hacia tiempo que no veia una parida tan friki como esta que acabo de leer, te la dedico Mesones (la he tenido que traducir y mejorar un poco porque había detectado un fallo en el código :S) :
void killElephant() {
..Elephant ElephantToKill = Elephant1;
..YellowEleExterminatorGun gun = new YellowEleExterminatorGun();
..if(ElephantToKill.color == YELLOW) {
....gun.shoot(ElephantToKill);
..}
..else
....if (ElephantToKill.color != YELLOW){
......ElephantToKill.paint(YELLOW);
......gun.shoot(ElephantToKill);
....}
}


0 comentarios:
Publicar un comentario en la entrada