MCPcopy Create free account
hub / github.com/ActiveState/code / Ham

Class Ham

recipes/Python/107027_Simple_Collection_class/recipe-107027.py:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 time.sleep(0.5)
34
35 class Ham(Food):
36 def say(self):
37 print "I am Ham, and I don't want any arguments, thank you."
38 return ()
39
40 def speak_up(self, arg):
41 print 'I am Ham, and my arguments are %s' % arg
42 return arg
43
44 class Eggs(Food):
45 def speak_up(self, arg='bacon'):

Callers 1

recipe-107027.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected