Hi I have the following classes:
Home.java
Away.java
Other.java
In Home.java i have a declaration like:
private Away away;
private Other other;
other= new Other(AN ARRAY);
away = new Away(AN ARRAY , other);
//where AN ARRAY is just an array, and other
I then have code to pass AN ARRAY, other to Away.java
Now in Away.java I have:
private Other other;
public Away(AN ARRAY, Other panel)
I know that to access the array that was passed from anywhere else in the class Away, i can do the following in the constructor:
this.AN ARRAY= AN ARRAY .
What can i do to access the methods of Other from another location except the constructor of Away.java ? I know that to access the methods from the constructor i can do
panel. METHOD_OF_OTHER.JAVA()
However what do i need to do to be able to access the methods of Other.java from other locations (like Button listeners or other methods) in the class Away.java?