Java programming questions

CSDN Q & A 2022-02-13 05:56:33 阅读数:421

java programming questions
  1. Programming . requirement :
    (1) Design Person class , contain String attribute name( full name ) and display() Method ;
    (2) Design Teacher Class inheritance Person class , contain String attribute professionalTitle( The title ) and display() Method ;
    (3) Design Student Class inheritance Person class , contain int attribute studentNumber( Student number ) and display() Method ;
    (4) Design Undergraduate Class inheritance Student class , contain display() Method ,int attribute grade( grade ).
    All classes should have appropriate construction methods and output all attribute values display() Method .
    (5) Design test class Test, Realize the above types and output relevant contents

Take the answer :

It's simple ,csdn Search a lot of , Simple homework should be done by yourself , If you have a long story, a lot of people will write to you ,10 It was finished in less than minutes

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you.