Question: Java formats In this assignment, you will write a class that implements a contact book entry. For example, my iPhone (and pretty much any smartphone)
In this assignment, you will write a class that implements a contact book entry. For example, my iPhone (and pretty much any smartphone) has a contacts list app that allows you to store information about your friends, colleagues, and businesses. In later assignments, you will have to implement this type of app (as a command line program, of course.) For now, you wil just have to implement the building blocks for this app, namely, the Contact class. .The first name of the person The last name of the person The phone number of the person The street address of the person The city of the persorn The state of the person The Contact class should implement the Comparable interface. More on this later Of course, you may implement private helper methods if it helps your implementation. A constructor that initializes all the fields with information A constructor that initializes only the name and phone number accessor (getter) methods for all of the data members. an update method that allows the user to change all information. (They must change all of it) An overridden equals method that can tell if one Contact is the same as another It should have the method signature public boolean equals (0bject obj); We will define one Contact as being the same as another contact if the first and last names both match. (Be careful! The parameter may not be a bona fide Contact!) An overridden toString) method that creates a printable representation for a Contact object. It should have the method signature: public String toString); The String should be created in the following form: First name last name Phone number:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
