简体   繁体   中英

UML Class Diagrams - notation for extending a Generic, Abstract class?

I found this stack overflow post describing something similar, but this implies that the Abstract Generic class is being extended into another abstract class with the template parameter specified and then extended into the class we want.

This is what I have, and I definitely don't think that this is correct.

Below is the code that needs to be modeled.

public abstract class Board<T>

public class TopBoard extends Board<BottomBoard>

I believe the following describes what you want. The templated type is bound to the class BottomBoard ( see Template Bindings).

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM