Created
December 12, 2013 02:25
-
-
Save tywtyw2002/7922309 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class lawn_sign(){ | |
public sign(people x){ | |
if my_sheet == empty: | |
my_sheet = new sheet(); | |
sheet.add(x.name); | |
} | |
public sign_count(){ | |
return my_sheet.size() | |
} | |
public send_lawn_sign(people x){ | |
x.accept(my_sheet) | |
} | |
} | |
intfaces people{ | |
private clothes; | |
public speak(); | |
public eyes(); | |
} | |
class su_president implements people{ | |
public speak(){ | |
read_letter(); | |
} | |
private read_letter(){ | |
for i in open(letter_path): | |
i = i.strip() | |
echo i | |
} | |
public eyes(){ | |
return new eyes(); | |
//we donot what kind of eyes should su president have, so just return default eyes. | |
} | |
} | |
class Board_people implements people{ | |
public speak(){ | |
echo thanks! | |
} | |
public eyes(){ | |
return new eyes(kindly); | |
} | |
public accept(sheet x){ | |
free(x); // ^_^ | |
} | |
} | |
class stdent implements people{ | |
public student(){ | |
this.clothes = red/white | |
} | |
public speak(){ | |
raised_slogans(); | |
echo "<b style=\"color=#FF0000\">Our slogan</b>" | |
} | |
public raised_slogans(){ | |
try{ | |
raise slogans; | |
}cacth( afraid){ | |
run away; | |
} | |
} | |
public eyes(){ | |
return new eyes(deterrence) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment