Question
. Construction method: nonparametric construction method, parametric construction method 3. Member method: getxxx method, setXXX method, display basic information, showmsg method Define the teacher class
. Construction method: nonparametric construction method, parametric construction method
3. Member method: getxxx method, setXXX method, display basic information, showmsg method
Define the teacher class and inherit person
1. Attribute: Discipline
2. Construction method: nonparametric construction method, parametric construction method
3. Member method: getxxx method, setXXX method, lecture method
Define student class and inherit person
1. Attribute: Score
2. Construction method: nonparametric construction method, parametric construction method
3. Member method: getxxx method, setXXX method, examination method
Define test4 test class, test showmsg method, lecture method and examination method.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started