Goldman Sachs Interview Question

How to inherit methods from two classes in a third class?

Interview Answer

Anonymous

Dec 16, 2015

Iff it's Java then the only way would be through inheritance. By this I mean Super class has a method. This class is then inherited by a child class, which is then inherited by the 3rd class. This is the only way as Java doesn't support multi inheritance in classes