reference objects (newbie question)
From: Roderik (ng_at_nl100.cjb.net)
Date: 11/28/03
- Previous message: Knute Johnson: "Re: Clearing BufferedImage"
- Next in thread: Anthony Borla: "Re: reference objects (newbie question)"
- Reply: Anthony Borla: "Re: reference objects (newbie question)"
- Reply: Jose Rubio: "Re: reference objects (newbie question)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 21:35:52 +0100
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
- Previous message: Knute Johnson: "Re: Clearing BufferedImage"
- Next in thread: Anthony Borla: "Re: reference objects (newbie question)"
- Reply: Anthony Borla: "Re: reference objects (newbie question)"
- Reply: Jose Rubio: "Re: reference objects (newbie question)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]