皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
0102 - 构造方法练习 注意:请严格按照题目要求命名标识符 1、设计一个名为Customer的类,具体需求如下: 1)私有属性CID,long类型,客户ID,该ID号不能被修改 2)私有属性title,String类型,客户名称 3)私有属性email,String类型,客户邮件地址 4)CID属性的get方法:getCID()。功能:返回CID的值 5)title属性的get方法和set方法:getTitle(),setTitle(String title)。功能:返回客户名称、设置客户名称 6)email属性的get方法和set方法:getEmail(),setEmail(String email)。功能:返回邮件地址、设置邮件地址 7)无参数构造方法:随机生成一个1000~9999之间的整数,并存储在CID属性中。 8)带参数构造方法:调用无参数构造方法,并用形式参数初始化title、email属性。 9)成员方法:show()。功能:在一行中显式客户的信息,显示格式为“客户ID:XXXX  客户名称:XXX   邮件地址:XXXXXX” 2、定义一个测试类CustomerTester,测试要求如下: 1)创建一个Customer类型的数组CustomerList,数组长为5。 2)创建五个Customer对象,分别存放到CustomerList的5个元素中。五个对象的数据请自行组织,其中必须包含一条自己的信息。 3)逐个执行CustomerList中每个对象的show()方法。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】当注册会计师未遵循诚信原则开展审计服务时有可能面临的诉讼是()
A.
过失
B.
违约
C.
渎职
D.
欺诈
【简答题】We are not trying to practice medicine. We are trying to give consumers detailed information on their various health care issue.
【单选题】What happens at the end of the conversation?
A.
Janet doesn ’ t understand what ’ s happening.
B.
Kate gives an example of research into second language learning.
C.
Janet can ’ t think of any further questions to ask Kate.
D.
Kate is very hungry and can ’ t think any more.
【单选题】当注册会计师未遵循诚信原则开展审计服务时有可能面临的诉讼是
A.
欺诈
B.
违约
C.
渎职
D.
过失
【单选题】现代管理会计中占核心地位的是 ( )。
A.
预测决策 会计
B.
成本会计
C.
规划控制
D.
责任会计
【单选题】当注册会计师未遵循诚信原则开展审计服务时有可能面临的诉讼是
A.
渎职
B.
过失
C.
欺诈
D.
违约
【多选题】预制地下连续墙施工应符合下列要求。()
A.
混凝土采用水平分层连续浇筑
B.
每浇筑一次混凝土应进行两次塌落度测试
C.
每五个槽段应留置一组抗渗试件
D.
布设导管
【单选题】We're trying to ring you back, Bryan, but we think we ______ your number incorrectly.
A.
looked up
B.
took down
C.
worked out
D.
brought about
【单选题】当注册会计师未遵循诚信原则开展审计服务时有可能面临的诉讼是
A.
欺诈
B.
违约
C.
过失
D.
失职
【单选题】Communication comes from the Latin cornrnunis, common. When we communicate we are trying to establish a 'commonness' with someone. That is, we are trying to share information, an idea, or an attitude....
A.
Communication means the establishment of a commonness with someone.
B.
Communication means the sharing of information, an idea or an attitude.
C.
The word 'communication' comes from the Greek word 'communis'.
D.
Communication always requires at least three elements.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题