Write a class called Full Name that represents a persons full name. It must have separate fields
Question:
Write a class called Full Name 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 to String() method to return a nicely formatted name. Create as many methods as you think necessary. Write a class called Mailing Address that represents a mailing address. It must have separate fields for a Full Name object, street address, city, province and postal code. Other than Full Name all other fields are Strings. Override the to String() method to return a nicely formatted address. Create as many methods as you think necessary. Write a class called Shipping Label that consists of ship-from and ship-to Mailing Address objects. Write a single method that prints the label to the console. Use these statements in the method: Shipping Label label = new Shipping Label(... your parameter list ...); System.out.print ln (label); Write a simple test program in the main method of Shipping Label to test the above classes.
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris