Question: CHALLENGE ACTIVITY 7 . 3 . 3 : Defining a class. 5 2 8 0 4 0 . 3 4 8 9 5 2 8
CHALLENGE
ACTIVITY
: Defining a class.
In the Business class, complete the public method definition for setYearsOpen with the integer parameter customYearsOpen. Ex: If the input is then the output is:
Number of employees:
Years open:
BusinessDetails.java
public class Business
private int numEmployees;
private int yearsopen;
public void setNumEmployeesint customNumEmployees
numEmployees customNumEmployees;
Y Your code goes here
yearsOpen customYearsOpen;
public int getNumEmployees
return numEmployees;
public int getYearsopen
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
