Cognizant interview question

what is inheritance, method overriding?