r/javahelp • u/TD123TD • Nov 17 '19
How do I implement those two function?
Date is a class name. It contains three private datatype int day, month, year.
m. Return a reference to the object containing a copy of the date.
n. Make a copy of another date. Given a reference to an object containing a date, copy the data members of the object into the corresponding data members of this object.
Please give me an example how the function prototype should look like.
Edit:
I have to implement all the method here : http://prntscr.com/py9chy
I almost done except for m and n. Here is my work: https://pastebin.com/JnqhYzBA
0
Upvotes
3
u/sozesghost Nov 17 '19
What have you tried so far? Homework questions (which this clearly is) require so effort on your part.