Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Marking class diagram if is public, private, or protected

0 votes

I want to mark class using symbol +/-/#

I have trying like example :


+class fo{

# field1 : type

- foo(param : type2) : type3



but it's not working,

how to solution this problem ?

asked Jul 18, 2016 in Wanted features by uwong15 (390 points)

1 Answer

0 votes

Thanks for the suggestion.

But what's the drawing difference between a public class and a private class ?

Any pointer on this ?


answered Jul 20, 2016 by plantuml (122,830 points)
nothing, I just want to add (+), (-) or (#) character in front of the class name in class diagram...

With last beta

You can have:

-class fo{
    # field1 : type
    - field2 : type
    - foo1(param : type2) : type3
    # foo2(param : type2) : type3

We display a graphical symbol instead of the character.
What do you think about it ?

Support This Project Offer 250 Mo! Follow PlantUML on Twitter