M
Magnus.Moraberg
Hi,
Lets say I have a class called Point and I give this class the
following properties -
int[] CoordinatesInPixels{...}
float[] CoordinatesInInches{...}
And the Method -
bool IsInFirstQuadrant(){...}
My question is, if I create two objects of this class, do I have two
instances for each of the two properties and two instances of the
IsInFirstQuadrant() method stored in memory. That is, does all the
code need to execute IsInFirstQuadrant get loaded into memory twice,
or is the address of point1.IsInFirstQuadrant() equal to that of
point2.IsInFirstQuadrant().
Thanks for your help,
Barry.
Lets say I have a class called Point and I give this class the
following properties -
int[] CoordinatesInPixels{...}
float[] CoordinatesInInches{...}
And the Method -
bool IsInFirstQuadrant(){...}
My question is, if I create two objects of this class, do I have two
instances for each of the two properties and two instances of the
IsInFirstQuadrant() method stored in memory. That is, does all the
code need to execute IsInFirstQuadrant get loaded into memory twice,
or is the address of point1.IsInFirstQuadrant() equal to that of
point2.IsInFirstQuadrant().
Thanks for your help,
Barry.