Question : this in solidity
Answered by : abdullah-ashfaq-ociftl9w1xkm
To access a member (like a state variable) of the current contract, you do not typically add the this. prefix, you just access it directly via its name. Unlike in some other languages, omitting it is not just a matter of style, it results in a completely different way to access the member, but more on this later.
Source : https://docs.soliditylang.org/en/v0.8.17/introduction-to-smart-contracts.html#simple-smart-contract | Last Update : Tue, 27 Dec 22