I'm a rookie. I don't know how to modify the data of another subclass in a subclass of a class. (I write in class a: press the left key, modify a data in class b)
((AnotherClass)referencedObject).variableName++;
((AnotherClass)referencedObject).variableName++;