Lab 3 - To change this license header choose License Headers in Project Properties To change this template file choose Tools | Templates and open the

Lab 3 - To change this license header choose License...

  • Ryerson University
  • COE 618
  • Lab Report
  • Pakistani
  • 3
  • 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; } @Override public 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() ; }
Image of page 1
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '15
  • OLIVIADAS
  • @author, author Hammad

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture