maddy snow wrote:As my topic indicates, when implementing an interface, is it a good practice to convert all fields into private, or keep it as it is?
Just to clarify: When the others say that interface fields are
constants, what they mean is that your interface is equivalent to:
So whatever you do in your implementing class,
you should NOT call its field "
id". You'll just cause confusion.
However, as a general rule, you should ALWAYS define instance fields as
private. At least until you're much more experienced.
Winston