Example 2: Server-side Java Code I
class CountServantImpl extends Counter._CountImplBase {
private int sum_;
public CountServantImpl() {
System.out.println("Count Object Created");
sum_ = 0;
}
public int sum() {
return this.sum_;
}
public void initSum(int value) {
sum(value);
}
public int increment() {
this.sum_++;
return this.sum_;
}
}
Previous slide
Next slide
Back to first slide
View graphic version