R
Richard Price
I would like to define two methods in a class
such that they could be called as follows
value = obj.meth1(a,b)
obj.meth2(a,b) = value
I can code the first [accessor] method easily as
def meth1(a,b)
but how do I code the def statement for the second
[setter?] method?
such that they could be called as follows
value = obj.meth1(a,b)
obj.meth2(a,b) = value
I can code the first [accessor] method easily as
def meth1(a,b)
but how do I code the def statement for the second
[setter?] method?