"Classes can't be protected. Well ok, I peeked at my notes and only inner classes can be protected. "
compiling this results in:
c:\Users\markj\Desktop>javac ProtectedClass.java
javac ProtectedClass.java
ProtectedClass.java:1: modifier protected not allowed here
protected class ProtectedClass{
^
1 error
However this:
compiles just fine.
I'm confused as to what part of the statement was wrong?
Mark