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
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
--- Begin Message ---
hello guys
I'm new to programming, I started programming using pharo, I had a question
about pharo's object model. In object model we say, methods are public. What
does "public" mean here?
thanks
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
---