Using the javadoc default (protected) is enough. If you are to use protected then your doc comments should not have links to private members or classes. Because you will get error/warnings when generating javadoc.
About the documentation i can read the following statement in my assignment:
javadoc style comments must be used for each element of the public interface of each class. You must create a full suite of documentation for the classes of the completed project. This must be generated using the tool "javadoc" and must be in HTML format. Provide javadoc documentation for all classes you write.
So just for the public methods will do i guess. I havae javadoc for each data member and method, regardless of the visibility (private, default, protected, public).
thanks for your answers! In fact, after reading the instruction, I also was quite sure that writing javadoc for the public methods was enough... - just like you say, Roel.
But when I read that quite a few people think otherwise, and document the private methods anyway, I wonder whether it would be more safe to do this, too.
Perhaps it's not a must, but like you say K., it counts for the documentation? I guess I'll just do it too, then.
Without deviation from the norm, progress is not possible - Zappa. Tiny ad: