Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA: I have to use the given code to complete the program also provided is the UML and the output ======================================================================================================== Class Person /**

IN JAVA: I have to use the given code to complete the program also provided is the UML and the output

========================================================================================================

Class Person

/** * Constructor * Initializes fields with default values */

public Person()

{ name = "";

address = "";

phone = ""; }

/** * Constructor * Initializes fields with argument values */

public Person(String n, String a, String p)

{ name = n;

address = a;

phone = p; }

========================================================================================================

Class Customer

/** * Constructor * Initializes fields with default values */

public Customer()

{ super();

customerNumber = "";

mailingList = false; }

/** * Constructor * Initializes fields with argument values */

public Customer(String n, String a, String p, String c, boolean m)

{ super(n, a, p);

customerNumber = c;

mailingList = m; }

========================================================================================================

image text in transcribedimage text in transcribed

Name: Julie James Address: 123 Main Street Telephone: 555-1212 Customer Number: 147-A049 Mailing List: YES Person - name : String - address : String -phone : String + Person() + Person(n : String, a : String, p : String) + setName(n : String) : void + setAddress(a : String) : void + setPhone(p : String) : void + getName() : String + getAddress() : String + getPhone() : String Customer customerNumber : String 1- mailing List : boolean + Customer() + Customer(n : String, a : String, p : String, c: String, m : boolean) + setCustomerNumber( c: String) : void + setMailing List(m : boolean) : void + getCustomerNumber() : String +getMailing List() : boolean

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+Where do you want to live and work?

Answered: 1 week ago