Getters and setters allow you to get and set object properties via methods.
This example uses a lang property to get the value of the language property: