Re: [Pharo-users] Question about pharo's object model

2018-11-14 Thread Julien
Hello and welcome :-) When a method is « public » , it means that it is usable by any other object in the system. In Pharo, methods are « public » and instance variables are « protected ». « protected » means that the instance variable is only usable from inside the class defining it or f

Re: [Pharo-users] Question about pharo's object model

2018-11-14 Thread Ben Coman
Generically across programming languages... - a private method can only me invoked by an object of the same class (or subclass) i.e. it can only be invoked by itself. - a public method can be invoked from any object. In Pharo, variables are private and methods are public. The advantage of private