Okay, i have two classes. One needs to access (public) methods within the other . If i declare
ClassB objectName = new ClassB();
in one method of class A , then use objectName.methodname() in that method then it works fine.
Butif i then try and call objectName.methodname() from another method in class A it doesnt work, i need to make another instance of it.
Can i just make one instance of ClassB which all the methods in ClassA can access?
Does this make sense?