J.P. Morgan interview question

Various questions about polymorphism, inheritance, encapsulation, abstraction, etc