class foo: def
sayhi(self): print 'hello
world' def saybye(self): ##is there any reason for this to
be here? pass
class bar(foo): def
saybye(self): print 'bye
now'
class baz(foo): def
saybye(self): print 'later
tater'
x = foo()y = bar()z = baz()
david wrote:
class foo:
def sayhi(self):
print 'hello world'
def saybye(self): ##is there any reason for this to be here?
pass
Is foo.saybye() a default implementation or a placeholder for an 'abstract'
method?
A base class can have a default implementation of
david said unto the world upon 2005-12-14 05:39:
class foo:
def sayhi(self):
print 'hello world'
def saybye(self): ##is there any reason for this to be here?
pass
class bar(foo):
def saybye(self):
print 'bye now'
class baz(foo):
def