Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task for this assignment is to create a single - page PDF file that has class UML diagrams in it based on the Java
Your task for this assignment is to create a singlepage PDF file that has class UML diagrams in it based on the Java code linked to later on this page.
Your submission will include:
There are two Java interfaces.
These must be "abstract classes" in UML notation eg the class names need to be italicized
ASIDE: If italics is not available or if handdrawn then one must used the abstract classifier which must appear below the name of the classinterface that is abstract
One of the Java interfaces is a generic interface so such must be shown as parameterized type.
All public, protected, and private methods must be properly indicated.
There are three Java classes.
All public, protected, and private properties and methods must be properly indicated.
With all of code, involved types must be indicated.
In UML types are always the name followed by a colon followed by the type.
eg "alpha : int" without the quotes would be a variable of type int called alpha
eg "fooa : int, b : float : string" would be a function called foo having two parameters a and b where a is an int, b is a float, and the function returns a string
ASIDE: While not in this assignment, UML diagrams sometimes omit specifying the type when such is not relevant. When this is done, there is no colon since there is no type The type always appears as a suffix, ie at the "end", after a colon.
GenericPointDjava
interface GenericPointD
public E getX;
public E getY;
class GPointDjava
class GPointD implements GenericPointD
private E x;
private E y;
public E getX return x;
public E getY return y;
protected void setXYE x E y
x x;
y y;
PointDjava
class PointD extends PointDBase implements PointDInterface
private boolean flag;
public double getX
return super.x;
public double getY
return super.y;
protected void setXYdouble x double y
super.x x;
super.y y;
PointDBase.java
class PointDBase
protected double x;
protected double y;
PointDInterface.java
interface PointDInterface
public double getX;
public double getY;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started