J.P. Morgan interview question

Encapsulation, Inheritance, Threading and very basic concepts