1 package iotrmi.Java.sample;
5 public class TestClass {
12 private String stringC;
13 private CallBackInterface cb;
27 public TestClass(int _int, float _float, String _string) {
35 public void setA(int _int) {
41 public void setB(float _float) {
47 public void setC(String _string) {
54 public String sumArray(String[] newA) {
63 public int setAndGetA(int newA) {
70 public int setACAndGetA(String newC, int newA) {
78 public void registerCallback(CallBackInterface _cb) {
84 public int callBack() {
86 System.out.println("This callBack function is called inside TestClass!");
91 public static void main(String[] args) {
93 TestClass tc = new TestClass();
94 CallBack cb = new CallBack(3);
96 tc.registerCallback(cb);
97 System.out.println("Return value: " + tc.callBack());