addNewInstance() This method return's a new instance of the class, it is used after we called class.newInstance(),
the reason for this method is that class.newInstance() is +/- 15 time slower than creating the
class the normal way.
Add's a default constructor that calls the State super class
this constructor is needed so that we can get an instance from the class with class.newInstance()
Add all PC fields in the hier to state and
private boolean isDirty;
private boolean[] dirtyFields = new boolean[20];
private boolean[] filled = new boolean[20];
This method return's a new instance of the class, it is used after we called class.newInstance(),
the reason for this method is that class.newInstance() is +/- 15 time slower than creating the
class the normal way.
So if we do not have a instance class.newInstance() will be called, after that newInstance() will
be called on the instance, for fast object creation.