B
bob smith
Let's say I have this class:
public class Going_to_be_serialized implements Serializable {
public ArrayList<My_Rectangle> rectangles;
public My_Rectangle cur_rect;
So, there are four rectangles in "rectangles".
The "catch" is that cur_rect points to the first rectangle in "rectangles".
So, will there be five rectangles stored when I serialize this? Or will
cur_rect magically point to the first rectangle?
public class Going_to_be_serialized implements Serializable {
public ArrayList<My_Rectangle> rectangles;
public My_Rectangle cur_rect;
So, there are four rectangles in "rectangles".
The "catch" is that cur_rect points to the first rectangle in "rectangles".
So, will there be five rectangles stored when I serialize this? Or will
cur_rect magically point to the first rectangle?