Two classes with a same name in class diagram

+1 vote
asked Aug 22, 2018 in Question / help by vasbu (170 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

1 Answer

+4 votes
answered Aug 24, 2018 by plantuml (194,210 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 (170 points)
plantuml, first of all i apologize for lag of the response and thanks a lot for the provided solution to my question.