Question: java Objects and Classes An address contains linel, line2, street name, city, country, zip code and contact number. It is possible for a person to

java
Objects and Classes An address contains linel, line2, street name, city, country, zip code and contact number. It is possible for a person to change their address at any given point Questions 1. Using what you learnt in class create an Address class with all the relevant methods. [10] 2. Add a method called relocate which takes a new Address object as a parameter. [5] 3. Write another method that compares two addresses to see if they are the same. Addresses are the same is they share the same zip code and street name. [5] 4. Write a method called nullify which resets all the features of a particular address to their default values. The method should return true if this operation is a success and false if its not. [2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
