Commit some code about classy situations

About variable shadowing in Java, and class overriding issues.