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:

Schizophrenia

A long-term mental disorder involving a breakdown in the relation between thought, emotion, and behavior, leading to faulty perception and inappropriate actions and feelings.

Early Adulthood

A stage of human development that occurs from the late teens through the twenties, marked by the pursuit of independence and identity.

Acute Schizophrenia

(Also called reactive schizophrenia) a form of schizophrenia that can begin at any age, frequently occurs in response to a traumatic event, and from which recovery is much more likely.

Chronic Schizophrenia

(Also called process schizophrenia) a form of schizophrenia in which symptoms usually appear by late adolescence or early adulthood. As people age, psychotic episodes last longer and recovery periods shorten.

Related Questions