Goldman Sachs interview question

Java Polymorphism, encapsulation, inheritance.