It helps if you keep the names of the instance variables correctly synchronised with the names of the getters, if you want to avoid errors…