Domanda di colloquio di BlackBerry

what is Inheritance and polymorphism?