Count Text Property using Javabeans
Integer property named count
with its accessor methods
1: private intcount;
2:
3:
public intgetCount() {
4: return count;
5:}
6:
7:
public voidsetCount(int c){
8: count = c;
9:}
- Line 1: Integer count property declaration
- Lines 3-5: getCount() getter method definition
- Lines 7-9: setCount() setter method definition