Possible Duplicate:
Java protected fields vs public getters
If i have that class B extends A and in A i have some fields that i use also in B, it's better make this fields protected and call them from class B or write getter methods for this fields and so use this method from class B ? (this fields are setted in constuctor of A)