A better example of a code refactor after adding getters/setters is changing the names of the fields like so:

```
class Rect2D {
    int _width;
    int _height;
```

or

```
class Rect2D {
    int width_;
    int height_;
```


Reply via email to