class SayMyName: def __init__(self, myname): self.myname = myname def say(self): print "Hello, my name is", self.mynamename1 = SayMyName("A")name1.say()