- ZJU2007CSTEST1 给定一系列2维平面点的坐标(x
- Gauss_Elim 列主元高斯消去法
- reverse-the-word 用于把字母以相反的顺序重新排列
- labassignment1 lab assinment in verilog
- 向晓汉机械手 向晓汉编写的 PLC与电气控制书中机械手源码 西门子(To Xiao Han PLC and electrical control book robot hand source)
- Desktop 膨胀后的图像减去腐蚀后的图像可以产生一个形态学梯度 它是检测图像中局部灰度变化的一种度量(Inflation after image minus corrosion image can produce a morphological gradient detection in the image it is a measure of local variance)
文件名称:person
-
所属分类:
- 标签属性:
- 上传时间:2013-11-26
-
文件大小:720byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
类Person,包含以下属性:
String name
int age
boolean gender
Person partner。
为Person类写一个marry(Person p)方法,代表当前对象和p结婚,如若可以结婚,则输出恭贺信息,
否则输出不能结婚原因。要求在另外一个类中写一个主方法,来测试以上程序。
(下列情况不能结婚:1,同性;2,未达到结婚年龄,男<24,女<22;3,某一方已婚)-String name
Int the age
Boolean gender
The Person s partner.
For the Person class to write a Mary (Person p) method, represents the current object and p to marry, if you can get married, congratulations to output information,
Otherwise the output reason can t get married. Asked in another class to write a main method, to test the above procedure.
(can t get married in the following circumstances: 1, gay 2, age of marriage has not been achieved, the male < 24, female < 22 3, one married)
String name
int age
boolean gender
Person partner。
为Person类写一个marry(Person p)方法,代表当前对象和p结婚,如若可以结婚,则输出恭贺信息,
否则输出不能结婚原因。要求在另外一个类中写一个主方法,来测试以上程序。
(下列情况不能结婚:1,同性;2,未达到结婚年龄,男<24,女<22;3,某一方已婚)-String name
Int the age
Boolean gender
The Person s partner.
For the Person class to write a Mary (Person p) method, represents the current object and p to marry, if you can get married, congratulations to output information,
Otherwise the output reason can t get married. Asked in another class to write a main method, to test the above procedure.
(can t get married in the following circumstances: 1, gay 2, age of marriage has not been achieved, the male < 24, female < 22 3, one married)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
person.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
