package Counter; |
public class CountImpl extends _sk_Count implements Count { |
private int sum; |
CountImpl(String name) { // Count object constructor |
super(name); sum = 0; |
System.out.println("Count Object Created!"); |
} |
public int sum() throws CORBA.Exception { // accessor method: getSum |
return sum; |
} |
public void sum(int val) throws CORBA.Exception { // accessor method: setSum |
sum = val; |
} |
public int increment() throws CORBA.Exception { // increment method |
sum++; return sum: |
} |
} |
Note: This code is created automatically by |
IDL->Java pre-compiler from the IDL spec |