// to represent a list of bank customers class CustomerList{ } // Represents a List of Customers... interface ILoC{ } // Represents an empty List of Customers... class MtLoC implements ILoC{ // Nothing to be done for MtLoA MtLoC(){} } // Represents a non-empty List of Customers... class ConsLoC implements ILoC{ Account first; ILoC rest; ConsLoC(Account first, ILoC rest){ this.first = first; this.rest = rest; } /* TEMPLATE FIELDS: ... this.first ... --- Customer ... this.rest ... --- ILoA METHODS: METHODS FOR FIELDS: */ }