Question: Write a class called Dates with the required constructor and methods. Subtask: 1. Create a class called Dates and create the required constructor 2.
Write a class called Dates with the required constructor and methods. Subtask: 1. Create a class called Dates and create the required constructor 2. Create a class method called toDashDate() to replace the "/" from date to "-". 3. Create getDate() method to access variables. 4. In the conditional statement it prints "Equal". Explain why. [You are not allowed to change the code below]
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
