Which statement about Encapsulation is correct? a. Encapsulation refers to storing a value in a variable, and
Question:
Which statement about “Encapsulation” is correct?
a. Encapsulation refers to storing a value in a variable, and never changing it again. This way its value is safe forever.
b. Encapsulation refers to storing a value variable, and making it impossible to retrieve it.
c. Encapsulation refers to controlling the way a variable is accessed by forcing users to use getter/setter methods that prevent misuse of the variable.
d. Encapsulation implies that the methods of a class are not accessible to the other classes.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Principles Of Database Management The Practical Guide To Storing Managing And Analyzing Big And Small Data
ISBN: 9781107186125
1st Edition
Authors: Wilfried Lemahieu, Seppe Vanden Broucke, Bart Baesens
Question Posted: