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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question
  1. 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:

  1. Attributes
  2. Constructor
  3. 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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage