// Sample3/App.java
//##########################################################
// App Implementation (local with callbacks)
//##########################################################
//
public class App
{
public App()
{
A = new Aclass();
try{
A.setClient((Object)this); // Using the method defined by
// cam.netapp.SetClient
}
catch(Exception e){};
}
public void testCallBack(String S)
{
A.useCallBack(S);
}
public void printString(String S)
{
System.out.println(S);
}
//#### DATA MEMBERS ####
Aclass A;
public static void main(String argv[])
{
App S = new App();
System.out.println("The String \"Callback Ok\" Indicates Success");
S.testCallBack("Callback OK");
}
}