Home > Net >  Derived class program written in c #, for help,!!!!!
Derived class program written in c #, for help,!!!!!

Time:03-12

In c # to build 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

CodePudding user response:

Trying to write, not in q

CodePudding user response:

reference 1st floor Bridge_go response:
written by yourself, don't ask

Part is to try to write a write not bottom go to, I'm too small white only on a class

CodePudding user response:

, basic knowledge, reading the book

CodePudding user response:

What version? Protected data members for a while, a moment properties, supposedly simple attribute is not to need to specifically define the data members, definition is also defined the private can,

CodePudding user response:

reference 4 floor HZTLTGG response:
what version? Protected data members for a while, a moment properties, supposedly simple attribute is not to need to specifically define the data members, definition is also defined the private can,

Ao the private, the private copy wrong

CodePudding user response:

Also can go to the station search yangzhicai B in the learning phase, there is a c # language introductory explanation,
Some people think to be also quite good, is class picture quality is not so clear

CodePudding user response:

refer to 6th floor づ Simon reply:
are still in the learning phase can go to search yangzhicai B station, there is a c # language introductory explanation,
People think to be also quite good, is some classes of image quality is not so clear

Thank you!!!!!!!!!!
  •  Tags:  
  • C#