zhidan 2013-01-26 10:20:21
Description: 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.
Plat: Java | Size: 179KB | Downloads: 6