Call us 24/7: + 1(925)399 0085

Get your paper done by an expert

No matter what kind of academic paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcer. Save more time for yourself.

WhatsApp + 1(925)399 0085
$ 10
free
  • bibliography
  • title page
  • revisions
per page
19 k happy customers
4.7 out of 5 satisfaction rate
27 writers active

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

Decorating Employee Objects (18 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 :

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

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. I will compile and run from the command line.

A Java submission must compile and run from the command line or it will earn a 0 and will not be graded further. Do not include package statements or this will happen.

Our guarantees

Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. 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

Our Homework Writing Disciplines

With a highly diverse team in almost all academic fields including:


Warning: Invalid argument supplied for foreach() in /home/acemfljg/public_html/wp-content/themes/essay-writing/footer.php on line 12