package practice; public class Must { int staff_id; String fname,sname,title; public void pick_salary(){ System.out.println("all MUST staff pick salary"); } public void payRbs(){ System.out.println("all MUST staff payRbs"); } public static void main(String[] args) { Must m=new Must(); m.payRbs(); m.pick_salary(); UniversitySecretary u=new UniversitySecretary(); u.Salary(); Supportstaff s=new Supportstaff(); s.Clean(); s.Distribute(); Teach t=new Teach(); t.Teaching(); Vicechancellor a =new Vicechancellor(); a.meeting(); } } class UniversitySecretary extends Must{ public void Salary() { System.out.println("The US pay staff saliries"); } } class Supportstaff extends Must{ public void Clean() { System.out.println("Support staff Clean Rooms"); } public void Distribute() { System.out.println("Support Staff Distribute Letters"); } } class Teach extends Must{ public void Teaching() { System.out.println("They teach"); } } class AcademicStaff extends Teach{ public void Teaching() { System.out.println("They teach"); } } class AcademicRegistrar extends Teach{ public void Teaching() { System.out.println("They teach"); } } class ChairMeeting extends Teach{ } class Vicechancellor extends ChairMeeting{ public void meeting() { System.out.println("VC chair Senate meetings"); } } class DeputyViceChancellor extends ChairMeeting{ public void meeting() { System.out.println("DVCs chair Senate meetings"); } }