+ 1
Getter and Setter
How getter and setter protect your data ???? I don't understand😔😓
1 Antwort
+ 3
you have to declare your fields as private so no other class can see it fields. If a other class want to use them it has to use the getter or setter