Skip to the content.
package com.bookshop.solid.isp;

import com.bookshop.domain.Book;
import com.bookshop.domain.Customer;

/**
 * The Saturday student only works the till -- and with role-sized interfaces,
 * that is the only method they are asked to implement. No stubs, no throws.
 */
public class WeekendTemp implements Bookseller {

    @Override
    public String sell(Book book, Customer customer) {
        return "sold " + book.title() + " to " + customer.name();
    }
}

Raw file