Please explain what are getter and setter, I am having a very hard time wrapping my head around those two?

How is getter and setters different from the simple function?
What difference does it make if we add get or set to a function?
Why do we use _ underscore when using getter/setters?
Do getter and setter go together?

Hi there! Here’s a post that explains getters and setters:

You can also use the Search :mag: feature in the upper-right corner to find other articles explaining getters and setters. Here’s a how-to article for reference: [How-to] Search for previous answers

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.