Home » Lab 6 Directions

Lab 6 Directions

DecoratingEmployee Objects (28 Points)

Write a Java program that uses decorator classes to add capabilities to employees. In a typical company, an employee will be asked to perform a number of duties, such as Department Head, Safety Coordinator, Recruiter, or Community Liason. You should have additional ones besides those. Your Java program will create Employees and then decorate these employees at runtime.

  • Create an abstract class named Employee, with last name and description fields, and a getDescription() method.
  • Create a concrete class named SalariedEmployee that extends Employee.
  • Create an abstract class named ResponsibilityDecorator that is able to decorate an employee and return the employee’s responsibility as a string. It will have an abstract getDescription method.
  • Create some job category classes that extend the ResponsibilityDecorator class and implement the getDescription() method.
  • In your main test program, create at least 5 Employee objects and pass them to the constructors of each of your decorator classes.The first employee should be you so use your last name.Then, print each Employee by calling its getDescription() method.All employees should not have the same number of responsibilities.
  • The program’s output should look something like this for each employee :

Of course, you print the person’s name where the “[LastName]” placeholder is shown. The brackets should not be included.

Submission (2 Points)

  • Submit a ZIP file called FirstnameLastnamelab6.zip containing only Java source files. Do not use the package statement in any of your files.
  • Each class should be in a separate file.
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code ESSAYHELP