Question: Program 2 Write a class called FullName that represents a persons full name. It must have separate fields for title (e.g., Mr., Mrs., Ms.), first

Program 2 Write a class called FullName that represents a persons full name. It must have separate fields for title (e.g., Mr., Mrs., Ms.), first name, middle name, and last name. Override the toString) method to return a nicely formatted name. Create as many methods as you think necessary. Write a class called MailingAddress that represents a mailing address. It must have separate fields for a FullName object, street address, city, province and postal code. Other than FullName all other fields are Strings. Override the toString0 method to return a nicely formatted address. Create as many methods as you think necessary. Write a class called ShippingLabel that consists of ship-from and ship-to MailingAddress objects. Write a single method that prints the label to the console. Use these statements in the method: ShippingLabel label new Shippinglabel... your parameter list. System.out.println(label) Write a simple test program in the main method of ShippingLabel to test the above classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
