Capgemini interview question

explain about inheritance in java