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_; |
} |
} |