this

Comment fonctionne le mot-clé" this"?

J'ai remarqué qu'il ne semble pas y avoir d'explication claire de ce qu'est le mot-clé this et comment il est correctement (e ... avec elle et j'ai échoué à comprendre pourquoi cela s'est produit. Comment fonctionne this et quand devrait-il être utilisé?

Quand devrais-je utiliser "ceci" dans une classe?

Je sais que this fait référence à un objet courant. Mais je ne sais pas quand j'ai vraiment besoin de l'utiliser. Par exemple ... l'utiliser? Devrais-je l'utiliser. Si j'utilise simplement method(), ne sera-t-il pas, par défaut, appliqué à l'objet actuel?

Come funziona la parola chiave "this"?

Ho notato che non sembra esserci una chiara spiegazione di cosa sia la parola chiave this e di come sia correttamente (e in m ... olto strano con esso e non sono riuscito a capire perché si è verificato. Come funziona this e quando dovrebbe essere usato?

Quando dovrei usare "questo" in una classe?

So che this si riferisce a un oggetto corrente. Ma non so quando ho davvero bisogno di usarlo. Ad esempio, ci sarà qualche di ... )? Posso usarlo? Dovrei usarlo. Se uso solo method(), non sarà, per impostazione predefinita, applicato all'oggetto corrente?

What are the uses of this in Java?

I know it returns a reference to the current object, and you can use it to resolve the conflict between local and global names, for example in the constructor. But what are more practical applications?

bind and this || JavaScript [duplicate]

This question has already been answered here: ... ayHiWindow() The question is: why does the console call person.sayHiWindow() and return the window object instead of person?