Question: 4 * Abstrhact Teacher Class 5 * The Teacher class should have the following attributes & methods. 6 * Attributes: 7 * name ( String

4* Abstrhact Teacher Class
5* The Teacher class should have the following attributes & methods.
6* Attributes:
7* name (String), subject (String)
8* Define a constructor for Teacher with name and subject as parametenelith the same order as git
9* Abstract Methods:
10* displayDetails(), teach()- both methods do not return any value
11* MathTeacher Class
12* The MathTeachef class should inherit the Teacher class and have the following attributes.
13* Attributes:
14* specialization (String)
15* Call the parent construgertor with arguments
write a program in java
4 * Abstrhact Teacher Class 5 * The Teacher class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!