// Sample1/App.java //########################################################## // App Class Implementation (Local) //########################################################## // public class App { public App() { A = new Aclass(); } public int doCalculation(int D) { return A.addTwo(D); // Call an Aclass method } //#### DATA MEMBERS #### Aclass A; public static void main(String argv[]) { App S = new App(); int result = S.doCalculation(5); System.out.println("The result of the calculation = " + result+ " (and should = 7)"); } }