How do we represent private, public and protected in class diagrams?



How do we represent private, public and protected in class diagrams?..

Answer / Mithun Azad

In Class Diagrams, access modifiers such as Private (represented by a minus sign -), Public (represented by a plus sign +), and Protected (represented by a hash sign #) are used to specify the visibility of class members (attributes or methods). These modifiers determine whether the member can be accessed from outside the class, from the same package, or only within the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More UML Interview Questions

What is object constraint language?

1 Answers  


What is the origin of UML?

1 Answers  


What is package diagram in UML with example?

1 Answers  


What does UML stands for?

1 Answers   Futures First,


Explain about the methods in UML?

1 Answers  


What are assertion facets used for in uml?

1 Answers  


In the unified process, during which phases is requirement analysis mainly carried out?

4 Answers   Oracle,


Explain about behavioral diagrams?

1 Answers  


Does Visio Standard have UML?

1 Answers  


What is Object Constraint Language (OCL)?

2 Answers  


How to identify the actors in a ucd?

1 Answers  


How to backup active directory?

1 Answers  


Categories