- Category:
- JavaScript
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2012-12-10
- Downloads:
- 0 Times
- Uploaded by:
- 李泽华
Description: Declare a human Person, attribute has name, sex, date of birth, ethnic, and other information, the class has two structure method () Person and Person (name, sex, date of birth, and national)
Undergraduate class Undergraduate inheritance Person, increased student id, professional, the information such as class, there are two construction methods Undergraduate () and Undergraduate (name, sex, date of birth, and nationality, student id, professional, class)
The Graduate student class Graduate inheritance Undergraduate class Undergraduate, and add the name of the teacher, there are two construction methods Graduate () and Graduate (name, sex, date of birth, and nationality, student id, professional, class, teacher).
Create a Graduate student Graduate class object, understand the usage of the inheritance, the output of the Graduate student information.
To Search:
File list (Check if you may need any files):
Inherited use.txt