Answer:
1 and 11 only
Step-by-step explanation:
Accessor methods reads from objects defined in a class, the getYearPublished() method can be deemed to be an accessor because it reads from the book object, the year in which a book was published. The returned value in the declared variable is int result which indicates that an integer value is expected to be read and returned by the getYearPublished() method. Hence, we can conclude that an integer is value is returned rather than a string. The getYearPublished() is expected to be public because class methods have no access to private members.