Home > Back-end >  A Java problem:
A Java problem:

Time:10-10

Establish a human (Person) and students (Student) functional requirements (put all the classes in a Java file) : (1) the Person contains four protected data member name, address, sex, age, respectively, as a string, the string of characters, and integers, said: name, address, gender and age, a four constructor, a no constructor, and an output method is used to display the four attributes, (2) the Student inheritance Person, and increase the output members, math, English for math and English, a six constructor, a two constructors, one has no constructor, rewrite the output method is used to display all six attributes. (3) to write a Test class, call the Person class and Student class methods, and output the corresponding results,
  • Related