Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 7ac4641

Browse files
committed
move stuff around and rephrase
1 parent ccdf9a5 commit 7ac4641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pages/book/contracts.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Each contract can contain:
3030
* [Receiver functions](#receiver-functions)
3131
* [Internal functions](#internal-functions)
3232

33-
Furthermore, contracts can inherit all the declarations from [traits](/book/types#traits) and override some of their default behaviours.
33+
Furthermore, contracts can inherit all the declarations and definitions from [traits](/book/types#traits) and override some of their default behaviours. If declared or defined in a trait, internal functions and constants can be marked as [virtual or abstract](/book/functions#virtual-and-abstract-functions) and overriden in contracts inheriting from the trait.
3434

3535
### Persistent state variables [#variables]
3636

@@ -199,7 +199,7 @@ contract HelloWorld {
199199

200200
These functions behave similarly to private methods in popular object-oriented languages — they're internal to contracts and can be called by prefixing them with a special [identifier `self{:tact}`](#field-access). That's why internal functions can sometimes be referred to as "contract methods".
201201

202-
Internal functions can access the contract's [persistent state variables](#variables) and [constants](#constants). If declared in a [traits](/book/types#traits), they can be declared as [virtual or abstract](/book/functions#virtual-and-abstract-functions) and overriden in the contract inheriting it.
202+
Internal functions can access the contract's [persistent state variables](#variables) and [constants](#constants).
203203

204204
They can only be called from [receivers](#receiver-functions), [getters](#getter-functions) and other internal functions, but not from other contracts or [`init(){:tact}`](#init-function).
205205

0 commit comments

Comments
 (0)