Multiple choice technology architecture

How to define an attribute as Protected inside the Class Diagram (UML)?

    • variable1 : String
  1. – variable 1 : String

  2. variable1 : String

  3. None of the above.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In UML class diagrams, the # symbol specifically denotes protected visibility for attributes and operations. Public attributes use + and private attributes use -. The protected visibility allows access within the same package and to subclasses.