Question:
How to write a mutator (setter)
Author: Silver BisonAnswer:
Public void setNumber(String number){ this.number = number; } public void setMaxOccupancy(int max){ if(max >= 25 && max <= 600) this.maxOccupancy = max; else }. this.maxOccupancy = 25;
0 / 5 Â (0 ratings)
1 answer(s) in total