一个类的产生

package zuo;


import javax.swing.JOptionPane;


public class DVD {
/**
* 影碟属性
*/
public int bianhao;  // 编号
public String pianming; // 片名
public int shuliang;    //数量
public int shichang;  // 时长
/**
* 租片人属性
*/
public String name;   //名字
public String waimao;  //外貌
public String  xingbie;  //行性别  true:男     false:女
public int riqi;   //日期
public int age;     //年龄
public int shengao;   //身高
public int money;    //租金
public int shouji;   //手机号码
public int guihai;    //归还日期
/**
* 员工属性
*/
String yname; //员工名字
String zhanye; //员工专业
String tangguo;//卖的糖果
String shuiguo;//水果
int yage;//员工年龄
int yxingbie;//员工性别
int wenpin;//员工文聘


/**
* 行为
*/

public void shouji(){
System.out.println("~~~~~~手机号码记录中~~~~~号码为:"+shouji);
}
public void liaotian(){
System.out.println("~~~~~员工聊天中~~~~~~");
}
public void zoulu(){
System.out.println("~~~客人大步走来~~~");
}
public void chaojia(){
System.out.println("~~~老板火冒三丈在和霸王餐客人吵架~~~");
}
public void dajia(){
System.out.println("~~~左勾拳右勾拳~~~");
}
public void fahuo(){
System.out.println("~~~你过来我发火了给我当沙包~~~");
}
public void fangxia(){
System.out.println("~~~客人放下碟子~~~");
}
public void qilai(){
System.out.println("~~~老板从凳子上起来~~~");
}
public void xiaorong(){
System.out.println("~~~笑眯眯的面容~~~");
}
public void wandiannao(){
System.out.println("~~~认真地玩着电脑~~~");
}
public void dadianhua(){
System.out.println("~~~偷偷摸摸打电话~~~");
}
public void youxi(){
System.out.println("~~~偷偷在玩游戏~~~");
}
public void kandianshi(){
System.out.println("~~~无聊看看电视~~~");
}
public void yaokongqi(){
System.out.println("~~~按着遥控器~~~");
}
public void maren(){
System.out.println("~~~员工很凶的骂老板~~~");
}
public void huishou(){
System.out.println("~~~挥动双手~~~");
}
public void zuoxia(){
System.out.println("~~~zuoxia~~~");
}
public void chixuegao(){
System.out.println("~~~一口一口吃着雪糕~~~");
}
public void kaikongtiao(){
System.out.println("员工:"+yname+"~~~开空调~~~");
}
public void kaibingxiang(){
System.out.println("~~~打开冰箱~~~");
}
public void tuixiangzi(){
System.out.println("~~~推动箱子~~~");
}
public void nadiezi(){
System.out.println("~~~拿起碟子~~~");
}
public void woshou(){
System.out.println("~~~握手~~~");
}
public void baozha(){
System.out.println("~~~爆炸了~~~轰轰~~~");
}
public void speak(){
System.out.println("~~~~~婴儿在哭~~~~~");
}
public void show(){
System.out.println("名片为:"+pianming+"。租用客服名字:"+name+"。外貌特征:"+waimao+"。手机号码:"+shouji+"身高为:"+shengao+"厘米。");
}
public void ygbd(){
System.out.println("员工:"+yname+"被老板打了~~~~~~~好怕怕~~~");
}
public void daimaozi(){
System.out.println("~~~~~~~老板戴起帽子~~~~~~~");
}
public void song(){
System.out.println("~~~~悠闲的唱着征服~~~~~~~");
}
public void zoujinglai(){
System.out.println("客人:"+name+"大步走进来。");
}
public void guankan(){
System.out.println("~~~~~看选碟片~~~~");
}
public void xuanding(){
System.out.println("~~~选择好碟片~~~~");
}
public void jilu(){
System.out.println("~~~~记录信息~~~~~");
}
public void xianshi(){
JOptionPane.showMessageDialog(null, "姓名:"+name+"。\n"+"年龄:"+age+"。\n手机号码:"+shouji+"。\n性别:"+xingbie+"。\n外貌特征:"+waimao+"。\n租金:黄金"+money+"两。");
}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值