CustomerList类
下面是关于CustomerList类的编写要求:
* CustomerList类的设计* Customer[] 用来保存客户信息* int total 用来保存当前存入客户数量* 该类至少提供以下的构造器和方法* public CustomerLIst(int totalCustomer);* public boolean addCustomer(Customer customer);* public boolean replaceCustomer(int index,Customer cust);* public boolean deleteCustomer(int index);* public Customer[] getallCustomer();* public Customer getCustomer(int index);* public int getToal();
CustomerView类
CustomerView类的编写
* 主模块:用于用户界面的展示、与用户交互* CustomerList customerList = new CustomerList(10) * 应含有的构造器和方法* private void enterMainMenue()* private void addNewCustomer()* private void modifyCustomer()* private void deleteCustomer()* private void listAllCustomers()* private static void main(String[] args)
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持七叶笔记。