Question: This projects make use of different design patterns. Suppose that you were asked to implement a project that enables users to create different types of

This projects make use of different design patterns.
Suppose that you were asked to implement a project that
enables users to create different types of shapes for
different operating systems and the shape properties could
be easily extended. For this project pay attention to the
following requirements:
Focus on Squares and Rectangles.
Enable creating shapes specific for two different
operating systems; windows and linux.
Any user can only draw maximum one instance of any of
the two shapes; one circle, one square
Each shape has two main functionalities; draw() and
getDescription(). In the implementation just add a print
statement showing what is happening; for example in
draw of circle, println(drawing a circle)
After creating the shape object, it should be possible to
extend the created shape with one or multiple of the
following.
fill shape with color
border color
Double border size
if the user creates circle shape, then automatically
executes a motion command. but if square is created
then executes border light command
Add a test driver class that does the following:
create a windows square; filled in with color, and has
double border size
create a linux circle; with corder color and has quadratic
border size

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