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 Réponse
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" ?