Week 8 Assignment
For this week, the deliverable is an updated class diagram. I am wide open as to how you implement the assignment. You may change the existing diagram (which is not really up to date since it does not have the Register factory implementation), or create new classes that show DI.

Use this diagram, and add the Dependency Injection pattern, where the design could benefit from it. Also implement your new design in Java.

In the write up this week, summarize lessons learned, and any difficulty you may have encountered. Outline any implementation decision and reasoning behind those. Include screenshots of the successful code compilation and test execution.

Purpose: The assignment will allow you to show your knowledge and understanding of implementing the dependency injection pattern.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

* The Class User.
public class User {

/** The id. */
private String ID;

/** The first name. */
private String firstName;

/** The last name. */
private String lastName;

/** The address. */
private Address address;

* Instantiates a new user.
public User() {

* Gets the id.
* @return the iD
public String getID() {
return ID;

* Sets the id.
* @param iD the iD to set
public void setID(String iD) {
ID = iD;

* Gets the first name.
* @return the firstName
public String getFirstName() {
return firstName;

* Sets the first name.
* @param firstName the firstName to set
public void setFirstName(String firstName) {
this.firstName = firstName;

By purchasing this solution you'll be able to access the following files:
Solution1.docx and

for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats