0% found this document useful (0 votes)
4 views1 page

Package Model

The document defines a Java class named 'Employee' that models an employee with attributes such as employee ID, name, designation, and salary. It includes a default constructor and a parameterized constructor for initializing the attributes, along with getter and setter methods for each attribute. This class serves as a basic representation of an employee in a system.

Uploaded by

nilimapawase14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Package Model

The document defines a Java class named 'Employee' that models an employee with attributes such as employee ID, name, designation, and salary. It includes a default constructor and a parameterized constructor for initializing the attributes, along with getter and setter methods for each attribute. This class serves as a basic representation of an employee in a system.

Uploaded by

nilimapawase14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

package model;

public class Employee {

private int employee_id;


private String employee_name;
private String designation;
private float salary;

public Employee() {
}

public Employee(int employee_id, String employee_name, String designation,


float salary) {
this.employee_id = employee_id;
this.employee_name = employee_name;
this.designation = designation;
this.salary = salary;
}

public int getEmployee_id() {


return employee_id;
}

public void setEmployee_id(int employee_id) {


this.employee_id = employee_id;
}

public String getEmployee_name() {


return employee_name;
}

public void setEmployee_name(String employee_name) {


this.employee_name = employee_name;
}

public String getDesignation() {


return designation;
}

public void setDesignation(String designation) {


this.designation = designation;
}

public float getSalary() {


return salary;
}

public void setSalary(float salary) {


this.salary = salary;
}
}

You might also like