RSS feed
[root]
/
c09
/
code
/
TI Pattern
/
software design
/
document
javaclass
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Dec 26 16:00:00 GMT 2001
SimpleClass
#: c09:SimpleClass.py class Simple: def __init__(self, str): print "Inside the Simple constructor" self.s = str # Two methods: def show(self): print self.s def showMsg(self, msg): print msg + ':', self.show() # Calling another method if __name__ == "__main__": # Create an object: x = Simple("constructor argument") x.show() x.showMsg("A message") #:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next