How to avoid getters and setters
When should you use getters and setters? Getters and setters are great for configuring or determining the configuration of a class, or retrieving data from a model Getting the price of an item is an entirely reasonable use of a getter. That is data that needs to be available and may involve special considerations to … Read more