17) Rewrite the following method using the this parameter.

What will be an ideal response?

```
public void setDay(int d)
{
//Valid days in a date are the integers 1 - 31
if((d >= 1) && (d <= 31))
day = d;
}
public boolean setDay(int day)
{
if((day >=1) && (day <= 31))
{
this.day = day;
return true;
}
else
{
return false;
}
}
```

Computer Science & Information Technology

You might also like to view...

In an Excel chart, a(n) ________ can be added to identify the data series or categories in the chart

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The convention is to use Pascal case for class names.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology