Other 2004 FR Questions | FR other years | Be Prepared Home |
public interface LibraryItem { String getId(); String getHolder(); void setHolder(String holder); } Part (b) public class LibraryBook extends Book implements LibraryItem { private final String theId; 1 private String theHolder; public LibraryBook(String id, String author, String title) { super(author, title); theId = id; theHolder = null; 2 } public String getId() { return theId; } public String getHolder() {return theHolder; } public void setHolder(String holder) { theHolder = holder; } }Notes:
Part (c)
Notes:
|
Copyright © 2004 by Skylight Publishing
support@skylit.com