IT Path Solutions interview question

how was inheritance achieved in java?