Ah, sorry. Of course i did change body of init and print to use instance variable x so this part is fine.
Though changing constructor call to m = MyClass(x: 111) doesnt make much of a sense to me. Name of constructor parameter is still value, not x.
Ah, sorry. Of course i did change body of init and print to use instance variable x so this part is fine.
Though changing constructor call to m = MyClass(x: 111) doesnt make much of a sense to me. Name of constructor parameter is still value, not x.