Pergunta de entrevista da empresa BlackBerry

what is Inheritance and polymorphism?