0
Assign properties value
Why we should use changeName method to change the name if we can assign it directly? Is p.changeName("John") same as p.name = "John" ?
1 Antwort
0
Encapsulation
Why we should use changeName method to change the name if we can assign it directly? Is p.changeName("John") same as p.name = "John" ?