class A:
def X(self):
print 'ini
method class induk'
class B(A):
def Y(self):
print 'ini
method class anak'
C=A()
D=B()
print C.X()
print D.X()
print D.X()
OUTPUT
Read more: http://cheater-handal.blogspot.com/2011/05/cara-membuat-ucapan-selamat-tinggal-di.html#ixzz2VzHob9hY
0 komentar:
Posting Komentar