Getters and setters, also known as accessors, are methods that are used to get and set the values of an object's properties.