asked 1.4k views
0 votes
The class Date has a single constructor that accepts the integer value: a month- (1 for January through 12 for December), a day of the month (1-31), and a year (in that order). Given the Date variable datep, dynamically allocate a Date object with the initial value of March 12, 2006, and assign the resulting pointer to datep.

1 Answer

4 votes

Answer:

datep= new Date(3,12,2006);

Step-by-step explanation:

MPL

answered
User Naoto Ida
by
9.0k points