Home > Back-end >  Consult ace... Help me, write a program
Consult ace... Help me, write a program

Time:09-22

1. Define P (decided oneself name, the class name must have actual meaning)
I. member variables (private) : A1, A2, etc (has practical significance to)
Methods: ii. Members E method
Iii. Provide empty to participate and take ginseng constructor
Iv. With setXxx and getXxx methods
2. Define the T, inheritance P
I. member variables: B1, B2 etc.
Ii. The method of members:
A) rewrite the superclass method E
B) the specific methods: method of F
Iii. Provide empty to participate and take ginseng constructor
Iv. With setXxx and getXxx methods
3. Define Test03 test class
I. P and T generated object
Ii. Call the respective object, the method of output objects related description
  • Related