package test4; /** * A picture book is a special type of book. * Each picture book has a collection of pictures. * The picture book and the collection of pictures * form a composition. */ public class PictureBook extends Book { /** * Initializes this picture book with the given title and * collection of pictures. * * @param title the title of this picture book. * @param pictures the collection of pictures of this picture book. * @pre. pictures != null */ public PictureBook(String title, List pictures) { } /** * Initializes this picture book with the title and collection * of picture of the given other picture book. * * @param book another picture book. * @pre. book != null */ public PictureBook(PictureBook book) { } /** * Returns the collection of pictures of this picture book. * * @return the collection of pictures of this picture book. */ public List getPictures() { } /** * Sets the collection of pictures of this picture book to the * given collection of pictures. * * @param pictures the collection of pictures of this picture book. * @pre. pictures != null */ public void setPictures(List pictures) { } /** * Returns a string representation of this picture book. * This string representation consists of "The book entitled " * followed by the title of this book, followed by " with ", * followed by the number of picture, followed by " pictures". * * @return a string representation of this picture book. */ public String toString() { } }