anonymous
  • anonymous
hey guys, i need help with this code because i don't know the parameter and can't figure it out: public class Date { private int month; private int day; public Date (int month, int day) { //Constructs a new Date representing the given month and day. setDate(month, day); } public boolean equals(Date d) { //This method should return true when the Date object on which //it was called represents the same date as the given Date parameter, //or false otherwise. if ( ) { return true; } else { return false; } } }
Computer Science
jamiebookeater
  • jamiebookeater
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

eSpeX
  • eSpeX
You are creating "Dates" and setting the month and day inside each. So if you run the equals() command, it should read and compare its values to that of 'd' and return true if they are the same date.

Looking for something else?

Not the answer you are looking for? Search for more explanations.