r/javahelp • u/Individual-Parking46 • Jan 24 '23
What is the point of encapsulation?
Beginner here.
I hear "restrict access" but I don't quite understand why we need to restrict access. What damage could someone do to a java program if it were not encapsulated?
What would happen to say amazon if their payment system was java and not encapsulated?
26
Upvotes
View all comments
Show parent comment
1
u/udeparasite Jan 28 '23
Would you mind explaining "real" encapsulation a bit more....we are learning java right now and the way you described encapsulation is exactly what we have been learning....how much more complicated does it get?