i had stuck with this question cz i'm newbie for java programming.
i hope ur helping...
The Vote class has the data field count to count votes, and the methods getCount(), setCount(), clear(), increment(), and
decrement() for reading and handling the votes, as shown in class diagram below. The increment () method increases and decrement () method
decreases the value of count by 1. The clear () method sets count to 0.
--------------------------------------
Vote
--------------------------------------
~getCount(): int
~setCount(c : int) : void
~clear() : void
~increment() : void
~decrement() : void
--------------------------------------
Based on the diagram and the description above, complete the following Vote class.
-------------------------------------------------------------------------------------
class Vote{
int count = 0;
public int getCount() {
return count;
}
public void setCount(int c) {
count=c;
}
}
thanks for your participant