Define a class called Counter whose objects count things. An object of this class records a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the count by 1, and to decrease the count by 1. Include an accessor method that returns the current count value and a method that outputs the count to the screen. Write a program to test
2007年11月30日 星期五
Class Definition 3
Homework 11/16/2007: lab class definition 2
2007年11月16日 星期五
2007年11月5日 星期一
訂閱:
文章 (Atom)