编写客户类

qq_45769639 2019-10-24 11:41:07
...全文
203 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
断桥忆 2019-10-25
  • 打赏
  • 举报
回复
public class Customer { private int Score;//积分 private String Type;//卡类型 //无参构造器 public Customer() { // TODO Auto-generated constructor stub } public Customer(int score, String type) { super(); Score = score; Type = type; } public int getScore() { return Score; } public void setScore(int score) { Score = score; } public String getType() { return Type; } public void setType(String type) { Type = type; } public void show(){ System.out.println("Customer [Score=" + Score + ", Type=" + Type + "]"); } }
qq_39936465 2019-10-24
  • 打赏
  • 举报
回复
这个很简单吧,基础。
「已注销」 2019-10-24
  • 打赏
  • 举报
回复
这种把要求说的明明白白,甚至连名字都给了的题还需要再问吗。。。。

62,628

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧