hopalong_ie wrote: » Could some one please explain/comment this code for me, have uml exam tomorrow which includes some java, have spent two hours trying to understand this code. public class Manager { // This is declaring a variable that will hold a list of accounts. // A vector is a synchronised implementation of java.util.List private Vector theAccounts; // This is a utility method that wraps the Vector's behaviour public void addAccount (account acc) { theAccounts.addElement (acc); } // Another utility method that wraps the Vector's behaviour public void removeAccount (Account acc) { theAccounts.removeElement (acc) } } Thanks
ronivek wrote: » In addition your use of a collection is only applicable if the class is only ever going to be a collection of Account objects.