No da error porque es correcto. Una cosa es la herencia multiple, en la que de un solo tajo heredas propiedades de dos o más clases, y otra cosa es lo que pones ahí. En este caso, NO es herencia múltiple, ya que solo heredas UNA clase al principio, y otra al FINAL, pero no al mismo tiempo.
Y cuando compilas te salen 3 .class, porque tienes tres clases: Num, A y B.
So, in this class we have merged the actual implementations of two other classes, Parent and Other without modifying either class. This is general multiple inheritance. In Java we needed to define and implement interfaces and use delegation to an object of one of the classes to achieve this.