Examlex

Solved

Public Class Employee

question 53

Essay

public class Employee
{
   private int empNum;
   private double empSalary;

   public void setEmpNum(int emp)
   {
      empNum = emp;
   } 
   public void setEmpSalary(double sal)
   {
      empSalary = sal;
   }
}
Given the class defined in the code above, write the Java statements that will create a new employee instance called employee15 and assign an empNum of 15 and empSalar y of 500.00 to that employee instance.


Definitions:

Internal Recruits

Employees who are already within the organization and are considered for new or vacant positions as part of career advancement or organizational restructuring efforts.

Employment Equity

The requirement that employers in the federal government and federally regulated industries increase the representation of women, people with disabilities, Aboriginal people, and members of visible minorities in their workplaces to match their availability in the workforce.

Aboriginals

Indigenous people native to a specific geographical area with distinct cultural and historical identities.

Visible Minorities

Individuals in a population who are recognized as distinct from the dominant group based on racial or ethnic characteristics.

Related Questions