Question
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; }
========================================================================================================
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() : booleanStep 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