Hybrid Inheritance Example Java