SYSC 2004 Lecture Notes - Lecture 5: Increment And Decrement Operators

52 views2 pages

Document Summary

* @version may 31, 2016 public abstract class counter. /** the current value of this counter. private int count; /** the minimum value of this counter. private int minimumcount; /** the maximum value of this counter. private int maximumcount; /** the default minimum value of this counter. private static final int default_minimum = 0; /** the default maximum value of this counter. private static final int default_maximum = 999; * initialized to default_minimum, and which counts between. * default_minimum and default_maximum, inclusive. public counter() minimumcount = default_minimum; maximumcount = default_maximum; count = minimumcount; * constructs a new rollovercounter whose current count is. * initialized to mincount, and which counts between. * @param mincount: the minimum count to be used. * @param maxcount: the maximum count to be used. public counter(int mincount, int maxcount) minimumcount = mincount; maximumcount = maxcount; count = minimumcount; * returns the maximum value of this counter.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions