Cognizant interview question

Define inheritance in oops with a simple program.