Java Class Inheritance with extends Keyword