1 | package Counter; |
2 | public class example_Count extends Skeleton implements Count { |
3 | private int sum; |
4 | example_CountImpl(String name) { // Count object constructor |
5 | super(name); sum = 0; |
6 | System.out.println("Count Object Created!"); |
7 | } |
8 | public int sum() throws CORBA.Exception { // accessor method: getSum |
9 | } |
10 | public void sum(int val) throws CORBA.Exception { // accessor method: setSum |
11 | } |
12 | public int increment() throws CORBA.Exception { // increment method |
13 | } |
14 | } |
15 | Note: This code is generated by IDL->Java pre-compiler and needs to be |
16 | completed by the developer (by implementing the indicated methods) |
17 | |
18 | |
19 | |
20 | Note: This code is created automatically by |
21 | IDL->Java pre-compiler from the IDL spec |