Question: Write a program in Java. A class Teacher contains two fields, Name and Qualification. Extend the class to Department, it contains Dept. No and Dept.

Write a program in Java. A class Teacher contains two fields, Name and Qualification. Extend the class to Department, it contains Dept. No and Dept. Name. An interface named as College contains one field Name of the college. Using the above classes and Interface get the appropriate information and display it.

Step by Step Solution

3.34 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner class Teacher protected String Name protected String Quali... View full answer

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!