
A Deep Dive Into Some Nooks and Crannies of JavaScript - JSJ 535
JavaScript Jabber
00:00
Is There a Use Case for a Getter in a Setter in Java?
Getters and setters are a way of controlling access to objects. They can be used in languages that don't follow the more strict object oriented hierarchy based on java script. In cotlin, for example, you have an inner face which is defined by functions rather than properties. The idea comes from being able to change something only within your own class without causing side effects. It also explains why it's so popular in jobscrip but not other programming languages.
Play episode from 06:41
Transcript


