public class Date
{
private int day;
private int month;
private int year;
public Date() //default constructor
{
...
}
public Date(int mo, int da, int yr) //constructor
{
...
}
public int month() //returns month of Date
{
...
}
public int day() //returns day of Date
{
...
}
public int year() //returns year of Date
{
...
}
//Returns String representation of Date as "m/d/y", e.g. 4/18/1985.
public String toString()
{
...
}
}
Which of the following correctly constructs a Date object in a client class?
(A) Date d = new (2, 13, 1947);
(B) Date d = new Date(2, 13, 1947);
(C) Date d;
d = new (2, 13, 1947);
(D) Date d;
d = Date(2, 13, 1947);
(E) Date d = Date(2, 13, 1947);