Cognizant Interview Question

can you explain inheritance and polymorphism