Which of the below is a valid and correct mutator method for 'author' (String) attribute of 'Book' class? : a.public String setAuthor() { return author; } b.private void setAuthor(String author) {...


Which of the below is a valid and correctmutator method for 'author' (String) attribute of 'Book' class?


:


a.public String setAuthor() { return author; }

b.private void setAuthor(String author) { this.author = author; }

c.public String setAuthor(String author) { this.author = author; }

d.public void setAuthor(String author) { author = author; }

e.public void setAuthor(String author) { this.author = author; }




Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here