DXC Technology Interview Question

What is inheritance in OOP?