Two classes with a same name in class diagram

+1 vote
asked Aug 22, 2018 in Question / help by vasbu (120 points)
recategorized Aug 22, 2018 by vasbu

Hi all,

I would like to have two classes with the same name such as:

  • Test <<stereotype>> 
  • Test

and I would like to make relation between those two classes. 
Is it possible to make alias for classes in class diagram so I can make distinction between the classes thus those will be represented as two different elements.

Thank you very much

commented Aug 25, 2018 by valexiev (1,100 points)
See "Using non-letters"

1 Answer

+4 votes
answered Aug 24, 2018 by plantuml (265,640 points)
selected Sep 19, 2018 by vasbu
Best answer

You can use alias with "as" keyword

class "Test" as TestStereo <<stereotype>>
class Test
Test --> TestStereo

commented Sep 19, 2018 by vasbu (120 points)
plantuml, first of all i apologize for lag of the response and thanks a lot for the provided solution to my question.