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:

Accumulated Depreciation

The total amount of depreciation expense allocated to a fixed asset since it was in service, reducing its book value on the balance sheet.

Service Life

The estimated duration of time that an asset is expected to be usable for its intended purpose.

Asset Impairment

A significant and sudden decline in the usability or fair market value of an asset, which necessitates the reduction of its book value on financial statements.

FASB

Financial Accounting Standards Board, an independent nonprofit organization responsible for establishing accounting and financial reporting standards for companies and nonprofits in the United States.

Related Questions