Which of the following method headers is most likely a header for a mutator method?

a) public int getAge()
b) public double computeSalary()
c) public Person()
d) public void setAge(int newAge)
e) none of these are headers for a mutator method


d) public void setAge(int newAge)

Computer Science & Information Technology

You might also like to view...

Counter-controlled repetition also is called _____________ .

a) infinite repetition b) unlimited repetition c) limited repetition d) definite repetition

Computer Science & Information Technology

If you replace text in a page that is not currently open, you can undo it.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

After you have added a Button onto a form, what can you do in order to create a method that executes when the user clicks the Button?

A. You can select the Button, then create the method. B. You can double-click the Button, and then create the method. C. You can single click the Button, and then create the method. D. You must delete the Button, and create the method first, then call the Button object by name.

Computer Science & Information Technology

Substitution, transposition, stream, and block are common forms of ciphers

a. true b. false

Computer Science & Information Technology