Question: UML class is required 26. Consider the code segment: public fina l class Address private String streeti private String city private String state; private String

UML class is required
26. Consider the code segment: public fina l class Address private String streeti private String city private String state; private String zip /** Create an address with street, city, state, and zip . public Address (String street, String city, String state, String zip) f this. Street street; this.city city this.state state; this.zip zip /*Return street / public String getStreet () return street; / *Return city / public String getCity) return city: /Return state / public String getstate) ( return state; /** Return zip / public String getzip)( return zip; /* Get full address / public String getFullAddress) return street 'In' city+ ", "state zip 'In' 26.a. Please use the blank page to create an UML for Address class (10 points) 26.b. Please explain why the class is considered as immutable (5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
