Source Code:
(back to article)
class MyClass: attribute = "Hello World" def method(self): print("MyClass Method") obj = MyClass() print(obj.attribute) obj.method()
Result:
Report an issue