Answered step by step
Verified Expert Solution
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
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