address book entry and name it AddressBook. a.The table below describes the information that an address book entry has. Attributes/Field Description Name Name of the person in the address book Address Address of the person Mobile Number Mobile number of the person
- Create a class that contains an address book entry and name it AddressBook.
a.The table below describes the information that an address book entry has.
Attributes/Field |
Description |
Name |
Name of the person in the address book |
Address |
Address of the person |
Mobile Number |
Mobile number of the person |
Email Address |
Email address of the person |
b.The class definition should contain the following:
- Attributes
- Constructor
- Accessors and mutators
Test Stem / Question |
Choices |
1: How many attributes should be defined in AddressBook class? |
A: 1 |
B: 2 |
|
C: 3 |
|
D: 4 |
|
E: None of the above |
|
2: How many accessors should be defined in AddressBook class? |
A: 1 |
B: 2 |
|
C: 3 |
|
D: 4 |
|
E: None of the above |
|
3: How many mutators should be defined in AddressBook class? |
A: 1 |
B: 2 |
|
C: 3 |
|
D: 4 |
|
E: None of the above |
|
4: What is the name of the Constructor? |
A: AddressBook |
B: AddressBook() |
|
C: public AddressBook |
|
D: None of the above |
|
5: How do you create an instance of AddressBook class? |
A: AddressBook addressBook; |
B: addressBook addressBook = new addressBook(); |
|
C: addressBook addressBook = new addressBook; |
|
D: None of the above |
the following questions will be uploaded.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)