Variable types in smalltalk
问题 I need help understanding the usage and the difference of variables in Smalltalk. What is the difference and the usage of each variable in the given code below? Object subclass: #MyClass instanceVariableNames: 'x' classVariableNames: 'Yy' poolDictionaries: '' category: 'helpMe' MyClass class instanceVariableNames: 'zzz' 回答1: An instance variable ( x ) is a variable that is local to an instance. Neither the class nor any other instance can access that variable. A class variable ( Yy ) is local