Question: 26. Consider the code segment: public final class Address ( private String street; private String city; private String state; private String zip; Create an address

26. Consider the code segment: public final class Address ( private String street; 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) ( this. street = street; this.city = city; this.state state; this. zip zip ; /Return street/ public String getStreet) return street /Return city / public String getCity) i return city; /*Return state public String getState) ( return state; /Return zip / public String getzipO f return zip; /* Get full address */ public String getFullAddress) f return street n' city ", " + state + 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) 26. Consider the code segment: public final class Address ( private String street; 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) ( this. street = street; this.city = city; this.state state; this. zip zip ; /Return street/ public String getStreet) return street /Return city / public String getCity) i return city; /*Return state public String getState) ( return state; /Return zip / public String getzipO f return zip; /* Get full address */ public String getFullAddress) f return street n' city ", " + state + 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
