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...

A company would like to prevent the use of a known set of applications from being used on company computers.Which of the following should the security administrator implement?

A. Whitelisting B. Anti-malware C. Application hardening D. Blacklisting E. Disable removable media

Computer Science & Information Technology

Compare a Linux GUI text editor to Windows Notepad.

What will be an ideal response?

Computer Science & Information Technology