Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. package experiments;
  2.  
  3. public class CounterImpl implements Counter {
  4. private int counter;
  5.  
  6. @Override
  7. public void count() {
  8. ++this.counter;
  9.  
  10. }//end count
  11.  
  12. @Override
  13. public int getCounter() {
  14. return counter;
  15. }
  16.  
  17. }//end class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement