Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8. Given the definitions of the Date and IncDate classes in this chapter, and the following declarations int temp: Date date1 = new Date(10.2.1989); Date

image text in transcribed
8. Given the definitions of the Date and IncDate classes in this chapter, and the following declarations int temp: Date date1 = new Date(10.2.1989); Date date2 = new Date(4.2.1992); IncDate date3 = new IncDate (12.25.2001); indicate which of the following statements are illegal, and which are legal. Explain your answers a. temp datel.getDay): b. temp = date3 . getYear(); c. datel.increment ): d. date3.increment ): e. date2 = date1: f, date2 = date3: g. date3 date2: 8. Given the definitions of the Date and IncDate classes in this chapter, and the following declarations int temp: Date date1 = new Date(10.2.1989); Date date2 = new Date(4.2.1992); IncDate date3 = new IncDate (12.25.2001); indicate which of the following statements are illegal, and which are legal. Explain your answers a. temp datel.getDay): b. temp = date3 . getYear(); c. datel.increment ): d. date3.increment ): e. date2 = date1: f, date2 = date3: g. date3 date2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

5. If yes, then why?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago