SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

CS 1337 Test 1

» Start this Course
(Practice similar questions for free)
Question:

How to write a mutator (setter)

Author: Silver Bison



Answer:

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