| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 458 人关注过本帖
标题:要写个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
快速回复:要写个customer class的代码
数据加载中...
 
   



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

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