文件名称:marryos
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:178.89kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
写一个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
src/zhidan_marryos/marry_os.java
src/zhidan_marryos/Person.java
文档.doc
.settings/org.eclipse.core.resources.prefs
.settings/org.eclipse.jdt.core.prefs
bin/zhidan_marryos/marry.class
bin/zhidan_marryos/marry_os.class
bin/zhidan_marryos/Person.class
bin/点击运行.bat
bin/运行时看.txt
src/zhidan_marryos
bin/zhidan_marryos
src
.settings
bin
src/zhidan_marryos/marry_os.java
src/zhidan_marryos/Person.java
文档.doc
.settings/org.eclipse.core.resources.prefs
.settings/org.eclipse.jdt.core.prefs
bin/zhidan_marryos/marry.class
bin/zhidan_marryos/marry_os.class
bin/zhidan_marryos/Person.class
bin/点击运行.bat
bin/运行时看.txt
src/zhidan_marryos
bin/zhidan_marryos
src
.settings
bin
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.