Hexagon Interview Question

How do you implement inheritance in a real world example?