Implement a class address an address has a house number a


Implement a class Address. An address has a house number, a street, an optional apartment number, a city, a state, and a postal code. Supply two constructors: one with an apartment number and one without. Supply a print method that prints the address with the street on one line and the city, state, and postal code on the next line. Supply a method public boolean comesBefore (Address other) that tests whether this address comes before another when the addresses are compared by postal code.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Implement a class address an address has a house number a
Reference No:- TGS0662052

Expected delivery within 24 Hours