This is possible with the interfaces:
interface IBar { doBarThings(); } interface IBazz { doBazzThings(); } class Foo implements IBar, IBazz { doBarThings() {} doBazzThings(){} }
But if you want to implement this in super / base style, then you will need to do something else, for example:
class FooBase implements IBar, IBazz{ doBarThings() {} doBazzThings(){} } class Foo extends FooBase { doFooThings(){ super.doBarThings(); super.doBazzThings(); } }
source share