- Category:
- JavaScript
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2013-11-26
- Downloads:
- 0 Times
- Uploaded by:
- 葛亮
Description: 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)
To Search:
File list (Check if you may need any files):
person.txt