I am working on a custom text field for a touch device, and this text field should be used in games. This custom text field is a class and has a variable that stores the keyboard image, which is a static variable if I need to display 2 text fields on one page (screen). I need to create 2 objects of the text field class, and since the keyboard image is stored in a static variable that it will be shared by both objects, now I want to know if any objects are created from the user keyboard class, are these objects (memory) a reference to any variable, if not I want to free the memory of the image and reload it when creating a new object.
source share