
Rodney B. answered 07/31/19
Tutor
5.0
(22)
Modern Computer Use, Office Applications and Programming
Use private readonly variables in your class, and do not provide any public setters for these variables.
This will make the variables const (unless you change the values within a class method). Generally, you will set the values in the constructor.