Object oriented programming: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 46: Line 46:
</syntaxhighlight>}}
</syntaxhighlight>}}


Any object with this method has all the fields accessible by the user. They only need to know the name of the field and they can retrieve it. This method effectively makes all the fields of your object public.
Any object with this method has all the fields accessible by the user. They only need to know the name of the field and they can retrieve it. This method effectively makes all the fields of your object public, but still read-only.


== Packages using object oriented programming ==
== Packages using object oriented programming ==
657

edits

Navigation menu