I am familiar with the differences between public and private. However, I read many online explanations about 'protected'. What I gather is that a protected field can be viewed and manipulated by all classes within the package, and all subsequent subclasses, ragardless of what package they are in right?
Well if that is correct, why cant one make the field private and use encapsulation to be able to access it? It works the same way,doesn't it?
Also, does netbeans support this protected feature, as I tried creating a class in a separate package (which is not inherited by any other classes in other packages), and when I tried calling on the fields across the package, they were still displayed, even though the class is not a subclass of the other. What gives? :S