/ Published in: Python
Expand |
Embed | Plain Text
# Simple Python Class class SimpleClass: def __init__(self, string): print "In the constructor" print string def SayHello(self, string): print "Hi, " + string + "." simpleClass = SimpleClass("Value Recieved") simpleClass.SayHello("This is Python")
You need to login to post a comment.
