Bean Internals  «Prev 

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:}

  1. Line 1: Integer count property declaration
  2. Lines 3-5: getCount() getter method definition
  3. Lines 7-9: setCount() setter method definition