BlackBerry interview question

what is Inheritance and polymorphism?