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 Resposta
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" ?