Question: There are one interface, three abstract classes and one class in a package p1 as described below: *Interface I defines a method public double

There are one interface, three abstract classes and one class in a package p1 as described below:

 

*Interface I defines a method "public double mI( );". 

*Abstract class S is a subclass of I, In S, one field "public static int v1;" is declared, and a method "protected boolean mS(int i)" is implemented. 

*Abstract class C1 is a subclass of S. In C1, there is a field "private Book b;" and an implemented method "public static double mC1(String s)". 

*Abstract class C2 is also a subclass of S. and defines an abstract method "int mC2()" in package visibility. 

*Class C3 extends C2 and defines a field "public Integer k".

 

 

Part a = List the method(s) C3 has to implement in order to prevent compile errors.

Part B = Show the UML class diagram, including the fields, methods, visibility, multiplicity, and relationships (including dependency).

 

Where would I begin on the UML diagram for Part B?

Step by Step Solution

3.44 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Part A Methods C3 has to implement in order to prevent compile errors int mC2 This is an abst... 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!