Cognizant Interview Question

Define inheritance in oops with a simple program.