learnt inheritance