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
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
Get step-by-step solutions from verified subject matter experts
