Question: 2 questions 40 and 42 both using same class date and incDate 40. Assume that datel and date2 are objects of class IncDate as defined

2 questions 40 and 42 both using same class date and incDate  2 questions 40 and 42 both using same class date and
incDate 40. Assume that datel and date2 are objects of class IncDate
as defined in Sec- tion 1.4. What would be the output of
the following code? datel -new IncDate (5, 5, 2000); date2 = date1
; System.out.println(datel); System.out.println (date2): datel.increment ): System.out.println (datel); System.out.println (date2)
image text in transcribed

40. Assume that datel and date2 are objects of class IncDate as defined in Sec- tion 1.4. What would be the output of the following code? datel -new IncDate (5, 5, 2000); date2 = date1 ; System.out.println(datel); System.out.println (date2): datel.increment ): System.out.println (datel); System.out.println (date2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!