A journal of Programming, Technology and Management notes
Monday, June 29, 2009
Protected vs. Private methods in Java
Unless you have a specific reason to make the method private - like you expressly want to prevent subclasses from accessing the method - methods should be protected. This way we can subclass this tag.
No comments:
Post a Comment