Which of the following statements is not correct? a. In UML, access modifiers can be used to

Question:

Which of the following statements is not correct?

a. In UML, access modifiers can be used to specify who can have access to a variable or method.

b. A private access modifier (denoted by the symbol “–”) is used in the case that the variable or method can only be accessed by the class itself.

c. A public access modifier (denoted by the symbol “+”) is used in the case that the variable or method can be accessed by any other class.

d. A protected access modifier (denoted by the symbol “#”) is used in the case that the variable or method can be accessed by both the class and its superclasses.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: