File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 44Contracts
55##########
66
7- Contracts in Solidity what classes are in object oriented languages.
8- They persistent data in state variables and functions that can modify these variables.
9- Calling a function on a different contract (instance) will perform an EVM
10- function call and thus switch the context such that state variables are
7+ Contracts in Solidity are what classes are in object oriented languages. They
8+ contain persistent data in state variables and functions that can modify these
9+ variables. Calling a function on a different contract (instance) will perform
10+ an EVM function call and thus switch the context such that state variables are
1111inaccessible.
1212
1313.. index :: ! contract;creation
@@ -184,10 +184,9 @@ return parameter list for functions.
184184 uint public data;
185185 }
186186
187- Other contracts can call `c.data() ` to retrieve the value of
188- data in state storage, but are not able to call `f `.
189- Contracts derived from `c ` can call `setData ` to alter the
190- value of `data ` (but only in their own state).
187+ Other contracts can call `c.data() ` to retrieve the value of data in state
188+ storage, but are not able to call `f `. Contracts derived from `c ` can call
189+ `setData ` to alter the value of `data ` (but only in their own state).
191190
192191.. index :: ! accessor;function, ! function;accessor
193192
You can’t perform that action at this time.
0 commit comments