Encapsulation Vs Plain
问题 Why should I use encapsulation if the code below will produce the same result? The main benefit of encapsulation is the ability to modify our implemented code without breaking the code of others who use our code. But I can use this benefit whithout using encapsulation right? because every object's field differs from each other's field. // Person.java public class Person { // Plain public String name; // Uses encapsulation private String name2; public void setName(String name2) { this.name2 =