Is this a thing in Scala to let objects implement traits? In Java, it looks a bit odd since I cannot code against the actual API anymore. Instead, I have to use the implementation directly:
Id stateMachineId = GuiStateMachineApiImpl.createStateMachine();
// ...
For instance,
GuiStateMachineApi
and its implementation look as follows:Is this a thing in Scala to let objects implement traits? In Java, it looks a bit odd since I cannot code against the actual API anymore. Instead, I have to use the implementation directly: