Created
November 9, 2010 10:37
-
-
Save raph-amiard/668941 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 Lion(object): | |
def run(): | |
print "THIS LION IS RUNNING" | |
class Panthere(object): | |
def run(): | |
print "THIS PANTHERE IS RUNNING" | |
animals = [Panthere(), Lion()] | |
for a in animals: | |
a.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment