Home > other >  Derived class program written in c #, thank you bosses!
Derived class program written in c #, thank you bosses!

Time:03-11

To establish a human (Person) and students (Student) functional requirements:
A, Person contains four members to protect the data type 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,
B, Student inheritance Person, and increase the output members, math, English for math and English, a six construction method, a two constructors, one with no arguments constructor, rewrite the output method is used to display all six attributes
  • Related