Is multiple inheritance or implementation possible?

0 votes
asked Jul 23, 2014 in Wanted features by fred (540 points)

Hello,

Is it possible to use the extends (resp. implements) keyword to specify multiple inheritance (resp. implementation)?

I tried the following syntax without success:

class A extends B, C {
}
 
A workaround is to use explicit links:
B <|-- A
C <|-- A
but this reduces readability.

 

Thanks,

 

Fred

1 Answer

0 votes
answered Jul 23, 2014 by plantuml (294,960 points)
selected Jul 24, 2014 by fred
 
Best answer
Hello,

Good idea, this has been implemented in V8002.

Thanks for the suggestion!

Regards,
commented Jul 24, 2014 by fred (540 points)
Thanks.

Often, I perform syntax tests with the online PlantUML application (http://www.plantuml.com/plantuml/form), but it is not always updated to the very last version.

Maybe this is because you wait until you have a stable version before putting it online? If this is the case, I would suggest a separate "beta" application (e.g., http://www.plantuml.com/plantuml_beta/form) so that one could test the very latest features.
...