Question: Please show work in java Write a class named PhonebookEntry. Each object of this class represents a phonebook entry, which consists of a Name and
Please show work in java 

Write a class named PhonebookEntry. Each object of this class represents a phonebook entry, which consists of a Name and a PhoneNumber. So the class should have two fields: a Name and a PhoneNumber. (When submitting your solution, just submit the PhonebookEntry class. The Name and PhoneNumber classes are present in CodeLab behinc the scenes.) The class should have two constructors: - One constructor should take two parameters -- a Name and a PhoneNumber -- and assign them to the fields. - The other constructor should be a copy constructor. It should make a deep copy of the original object, which re quires creating a new Name and a new PhoneNumber for the new object. The class should have the following methods: - getName - getPhoneNumber - setName - setPhoneNumber - toString: should return a String containing the name, followed by a colon and a space, followed by the phone number; for example, "Jane Doe: 123-456-7890". - toCsvString: should return a String containing the name, followed by a comma, followed by the phone number; for example, "Jane Doe,123-456-7890". (The "Csv" in the method name stands for "comma-separated values." - isEqualTo: should determine whether this PhonebookEntry is equal to another PhonebookEntry. Two Phoneboo k entry objects are considered equal if and only if they have equal Names and equal PhoneNumbers. The test code is below, in TestPhonebookEntry.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
