Apr-13-2017, 09:03 PM
I can not understand what you mean.
This make no sense
This just overwrite class object example.
There are no function in your example,it's called
If a function is placed in class it has
To run the class just to make it clear what it dos:
This make no sense
example = "bar"
This just overwrite class object example.
There are no function in your example,it's called
method
when belong to a class.If a function is placed in class it has
@staticmethod
decorator.To run the class just to make it clear what it dos:
>>> example = PointerVariable("foo") >>> example.for_use_of_variable_without_calling() 'foo' >>> example.val 'foo' # Change val to bar >>> example.new_value('bar') >>> example.for_use_of_variable_without_calling() 'bar' >>> example.val 'bar'