Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class called SkilledITWorker that extends ITWorker and has the following additional private attribute: skill (String) Write an alternate 3-argument constructor. In addition to

Create a class called SkilledITWorker that extends ITWorker and has the following additional private attribute:

skill (String)

  • Write an alternate 3-argument constructor. In addition to passing all 3 arguments to the super class constructor, this constructor should also set the skill attribute to an empty String ("")
  • Create a 'getter' and 'setter' method for the skill attribute. The setSkill method must also set the aptitude to 1.
  • Create a method called developProficiency that increases the aptitude by 1.
  • In this class, implement the hasSkill method works as follows: If the contents of the String argument are equal to the contents of the String in the skill field, return true, otherwise return false.

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_2

Step: 3

blur-text-image_3

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

2 Describe five characteristics of effective report content

Answered: 1 week ago

Question

3 Explain six strategies to strengthen your proposal argument

Answered: 1 week ago

Question

7 Explain how to choose which points in your message to illustrate

Answered: 1 week ago