結果 : how to extend and implement interface in java