UKG interview question

Coding using object oriented practices like inheritance