R
Roderik
Hi,
I'd like to make a function to manipulate objects of a given class.
Let's say there are two objects, called MyPoint1 and MyPoint2.
They are both of the class cCustomPoint and contain an x an y
attribute.
The function should assign a value for x to a passed object (MyPoint1
or MyPoint2).
How should I make this function so it knows which object to manipulate
and the value to be assigned?
Kind regards,
Roderik
I'd like to make a function to manipulate objects of a given class.
Let's say there are two objects, called MyPoint1 and MyPoint2.
They are both of the class cCustomPoint and contain an x an y
attribute.
The function should assign a value for x to a passed object (MyPoint1
or MyPoint2).
How should I make this function so it knows which object to manipulate
and the value to be assigned?
Kind regards,
Roderik