Scotiabank Interview Question

what is inheritance in oops