100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 3 out of 3 pages.
/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package coe618.lab3;/**** @author Hammad*/public abstract class AbstractCounter implements Counter{int value;public AbstractCounter() {value = 0;}@Overridepublic void reset() {value = 0;}public String Count(){ return "" +value ; } }/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package coe618.lab3;/**** @author Hammad*/public interface Counter {public void increment() ;public void decrement();public void reset() ; public String count() ;}
/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates