Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Counter {
- private int count;
- public Counter() {
- this.count = 0;
- }
- public void count() {
- count++;
- }
- public int getCount() {
- return count;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement