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

53 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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions