Question: 4 * Abstrhact Teacher Class 5 * The Teacher class should have the following attributes & methods. 6 * Attributes: 7 * name ( String
Abstrhact Teacher Class
The Teacher class should have the following attributes & methods.
Attributes:
name String subject String
Define a constructor for Teacher with name and subject as parametenelith the same order as git
Abstract Methods:
displayDetails teach both methods do not return any value
MathTeacher Class
The MathTeachef class should inherit the Teacher class and have the following attributes.
Attributes:
specialization String
Call the parent construgertor with arguments
write a program in java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
