Question 3:
Why is encapsulation important? Explain the potential risks of not using getters and setters for properties of classes.
Example:
class Person { public String name; public String password; }
Your answer here
Question 3:
Why is encapsulation important? Explain the potential risks of not using getters and setters for properties of classes.
Example:
class Person { public String name; public String password; }
Your answer here