文件名称:marryos
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-01-26
- 文件大小:
- 179kb
- 下载次数:
- 0次
- 提 供 者:
- zhi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
写一个Person类,定义人的基本属性:name(姓名)、age(年龄)、gender(性别)、partner(配偶)。
要求至少为Person类写一个marry(Person p)方法,来判断两个人是否可以结婚。如果可以结婚,将其partner属性赋值为其配偶。
结婚必须满足以下3个条件。
必须是异性,同性暂时不允许结婚
有配偶者不能结婚,犯重婚罪。
要达到年龄方可结婚:男方23岁以上,女性21岁以上。-Write a Person class, define the basic properties: name (name), age (age), gender (sex) partner (spouse).
Requires that at least for the Person class to write a marry (Person p) method to determine whether the two people can get married. If you can get married, its partner attributes assigned to his or her spouse.
Marriage must meet the following three conditions.
Must be heterosexual, homosexual temporarily not allowed to get married
Spouse who can not get married, committed bigamy.
To reach the age they get married: more than 23-year-old man, 21-year-old female.
要求至少为Person类写一个marry(Person p)方法,来判断两个人是否可以结婚。如果可以结婚,将其partner属性赋值为其配偶。
结婚必须满足以下3个条件。
必须是异性,同性暂时不允许结婚
有配偶者不能结婚,犯重婚罪。
要达到年龄方可结婚:男方23岁以上,女性21岁以上。-Write a Person class, define the basic properties: name (name), age (age), gender (sex) partner (spouse).
Requires that at least for the Person class to write a marry (Person p) method to determine whether the two people can get married. If you can get married, its partner attributes assigned to his or her spouse.
Marriage must meet the following three conditions.
Must be heterosexual, homosexual temporarily not allowed to get married
Spouse who can not get married, committed bigamy.
To reach the age they get married: more than 23-year-old man, 21-year-old female.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src\zhidan_marryos\marry.java
...\..............\marry_os.java
...\..............\Person.java
文档.doc
.settings\org.eclipse.core.resources.prefs
.........\org.eclipse.jdt.core.prefs
bin\zhidan_marryos\marry.class
...\..............\marry_os.class
...\..............\Person.class
...\点击运行.bat
...\运行时看.txt
src\zhidan_marryos
bin\zhidan_marryos
src
.settings
bin