标题:要写个customer class的代码
只看楼主
jackyshen
Rank: 2
等 级:论坛游民
帖 子:53
专家分:35
注 册:2010-5-16
结帖率:100%
 问题点数:0 回复次数: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 代码 
2010-05-31 15:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-308809-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.642164 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved