CountPOAServant - public synchronized int sum() { return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// The Count Implementation class CountPOAServant extends CounterPOA.CountPOA { private int sum; // Constructors CountPOAServant() { super(); System.out.println("Count Object Created"); sum = 0; } // get sum
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: public synchronized int sum() { return sum; } // set sum public synchronized void sum(int val) { sum = val; } // increment method public synchronized int increment() { sum++; return sum; } }...
View Full Document

This note was uploaded on 09/17/2009 for the course CMPE 273 taught by Professor Shim during the Fall '09 term at San Jose State University .

Ask a homework question - tutors are online