Limited access

Upgrade to access all content for this subject

Consider the following class.

public class Customer 
{
    // data and methods not shown
}

When instantiated, each customer must have a home phone number.

Which of the following statements would be most appropriate to store the home phone number (which includes the area code) in the Customer class?

A
private String homePhone;
B
public String homePhone;
C
private int homePhone;
D
public int homePhone;
E
private double homePhone;
Select an assignment template