Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ASAP! Can you help me to do this Lab thank you! I attached some files. Composition: Testing Date and Employee Class (Fig 8.7 and 8.8)
ASAP! Can you help me to do this Lab thank you! I attached some files.
Composition: Testing Date and Employee Class (Fig 8.7 and 8.8) Learning objective: Demonstrating the concept of composition in terms of oop Preparation: Students are required to have programs in Fig 8.7 and8.8 in the computer he/she will be using for the LAB. write the following comments at the beginning of your program: Programmer: Your name Lab5: Composition Date: Today's date a. [Point: 3l Create a test class called on in the same package where the Date and Employee classes are. b. [Point: 3) Create a Date object called myBirthDate and initialize it using your birth date. c. Point: 3] Create a Date object called myHirthDate and initialize it using today's date. d. [Point: 3l Create an Employee object called myself and initialize it using your name and two objects created in (a) and (b). e. [Point: 2] Write a print statement to print the object myself. f. [Point: 3l Create a Date object called bDate and initialize it to February 13, 1968. g. [Point: 3] Create a Date object called hDate and initialize it to July 5, 1998. h. [Point: 3l create an Employee object called director and initialize it using employee name Robin Hood and two objects created in (f and (g) i. [Point: 21 write a print statement to print the object director. Compile and run your program. o To receive full credit your program should compile and run with no errors Upload the Lab5Compositionjava file to Moodle Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started