1

Creating two classes: Main class and a Processing class

view story
linux-howto

http://stackoverflow.com – Suppose I have two classes, one is the main class A and the other is the class that helps in processing results for A, class B. Suppose in class A I take user input a1, and a2. Then I have to send these inputs to class B for processing, and with these inputs, B generates a result b1 and b2 (which are not related to a1 and a2 independently, but a1 and a2 together generate these two results). And since class A being the main class, has to access b1 and b2 to display the results. How do I make this happen ?? I currently am working on an Android Program that uses the Distance-Matrix API, an (HowTos)