Do the member functions of an object "reach" the object's variables?

0

That is, internally, can I directly manipulate a variable of the object, within the body of the function?

Is this equivalent or would it be necessary to do so with the this always?

ISBN has the member variables n1, n2, n3, and x.

    
asked by Gojira 30.05.2018 в 19:30
source

1 answer

2

Only when they have exactly the same name should you use this . If the name changes, uppercase and lowercase, an extra symbol etc ... you could do the direct assignment.

    
answered by 30.05.2018 в 19:33