3 ms·getter and setters are not necessary, but offer nice syntactical sugar to a language.by cwbrandsma 16y agogetter and setters are not necessary, but offer nice syntactical sugar to a language.