Question: CHALLENGE ACTIVITY 7 . 3 . 3 : Defining a class. 5 2 8 0 4 0 . 3 4 8 9 5 2 8

CHALLENGE
ACTIVITY
7.3.3: Defining a class.
528040.3489528.qx3zqy7?
In the Business class, complete the public method definition for setYearsOpen() with the integer parameter customYearsOpen. Ex: If the input is 1526, then the output is:
Number of employees: 15
Years open: 26
BusinessDetails.java
public class Business {
private int numEmployees;
private int yearsopen;
public void setNumEmployees(int customNumEmployees){
numEmployees = customNumEmployees;
}
Y* Your code goes here */{
yearsOpen = customYearsOpen;
}
public int getNumEmployees(){
}
return numEmployees;
public int getYearsopen(){
2
 CHALLENGE ACTIVITY 7.3.3: Defining a class. 528040.3489528.qx3zqy7? In the Business class,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!