Slide 10
Slide 10 text
4. WHAT DO WE MEAN BY “ACCESS CONTROL” IN
PROGRAMMING?
A. It specifies who has access to the methods in your object.
B. It’s a fancy security card with a barcode that you use to get into
secure places, like the FBI building or the secret recipe room of
a beverage company.
C. It’s an attribute of an object.
D. It defines who can open your cellar door
In programming, access control only defines who can use your methods or the
degree of access to them (private, public, etc.), not your object in general.
Methods define what can be done with your attributes, not access control.
Answers 2 & 4 are good analogies, but not the actual definition of access control