Discover how to use getter and setter methods to access and modify private class attributes.