Question: answer with true or false(java program) from A-E true or false F-G answer the usual way please solve asap (java program) Class Diagrams Person static

answer with true or false(java program) answer with true or false(java program) from A-E true or false F-G
from A-E true or false F-G answer the usual way
answer the usual way please solve asap (java program) Class Diagrams Person
static void WHIO SOP hose Benefit Student Faculty private double salary, double

please solve asap (java program) Class Diagrams Person static void WHIO SOP hose Benefit Student Faculty private double salary, double set Salary: Student Students Benefit Visiting Faculty Exchange Senior -int get Benefits freturn 100) Benefits interface has one method: int getBenefita(); A-F=> 1 mark each A) The Student class must have an import statement. B) If I make an object of type Exchange, then a constructor in Benefits will be called. C)The Visiting Faculty class has a compiler error (analyze what the constructor/super does E) The Senior class has a compiler error (analyze what the constructor/super does) F) How many instance variables does the Exchange class hove, and which ones can't access directly G) Write only the first and second constructors for the Student class (not the 3" one).2 marks each) Class Diagrams Person String name: private int age; Person(String n, int a +Person +RetARel) +static void sayHIO SOP "Hi from Person"); 1 Benefit Student Faculty private double salary; double spa + double getSalary: private String id; + Student(String n, int a, double s; Stringi) + Student Students + Studento +getpal) +int getBenefits() { return 20; 1 Benefit VisitingFaculty Exchange +int getBenefits { return 100;) Senior String capstone; + RetCapstone static void sayHit SOP("Hi from Senior"); + int getBenefits() {retum super getRenefits():30); Benefits Interface has one method: int getBenefits(); A-F => 1 mark each A) The Student class must have an import statement. B) If I make an object of type Exchange, then a constructor in Benefits will be called. C)The VisitingFaculty class has a compiler error (analyze what the constructor/super does) E) The Senior class has a compiler error (analyze what the constructor/super does) F) How many instance variables does the Exchange class have, and which ones can it access directly G) Write only the first and second constructors for the Student class (not the 3rd one) (2 marks each)

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 Databases Questions!