SAP Certified Associate Back End Developer ABAP Cloud · Free Practice Question Medium
Question 2
Your class contains a public instance attribute attr. How could you ensure that its value can only be changed within the class? Note: There are 2 correct answers to this question.
-
A
Make it a private attribute.
-
B
Convert it into a constant.
-
C
Move it to a different local class.
-
D
Leave it in the public section but use the READ-ONLY addition.
Reveal correct answers
Correct answers: A, D
Explanation

Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
