Cognizant interview question

can you explain inheritance and polymorphism