Have been away from JAVA over four years (wow, how did our world change), and picking up programming again!
I have lost some understanding of things and here is my small problem…
Here is the actual situation:
-there are 3 classes A,B and C
-class B declares an array:
1) int xpt; // in the header of the class;
2) xpt = new int; // at the constructor of that class;
3) class A initiates an object of class B and the arrays gets filled by mouse clicks (works fine);
4) When I want to get hold of that array in class C, what do I do….
Initiating (another) object of class B (in C) the array class will call the constructor and "delete" the values of the "original" array…..
What a mess?
thanks for any help (any of the old folks still around?)
BTW all classes are in the same packet and the first class is actually an applet (that works up to here)
again what a mess!