当前位置: 代码迷 >> Java相关 >> 要写个customer class的代码
  详细解决方案

要写个customer class的代码

热度:144   发布时间:2010-05-31 15:39:15.0
要写个customer class的代码
(i) Define instance variables for the customer ID (a String) and the customer name (a String).
Also define a constructor for the Customer class, which accepts the customer ID , name and phone number and name as parameters.
(iii) Define accessors for the customer ID and name.
(vii) Define an abstract method public abstract void completeSale (double price), which the customer subclasses will have to override later on.
(iv) Define a method public void print(), which prints a summary of the details (instance variables) for the customer to the screen.
搜索更多相关的解决方案: customer  class  代码  

----------------解决方案--------------------------------------------------------
  相关解决方案