class Complex: def __init__(self, realpart, imgpart): self.r=realpart #self.r auto initialize r self.i=imgpart def show(self): print("member function") x= Complex(0, 4.5) print(x.r,"+i",x.i) x.show()