Skip to content

Commit 1e5da2a

Browse files
authored
Add note en variables
1 parent 9760a47 commit 1e5da2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

General/Extensions.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
Pharo includes a system of extension methods. This feature allows the developer to add behavior (but not state) to existing objects in Pharo.
1616

17+
> Note that it is only possible to add methods (behavior) as extension and not variables (state)
18+
1719
There is no syntactic difference between calling an extension method and calling a method declared in the class. The main difference between methods and extension methods is that extension methods are stored in a different package than the class they are implemented on.
1820

1921
## Use of Extension methods

0 commit comments

Comments
 (0)