Computer Science, asked by Himans4341, 10 months ago

Mention five states and two methods of class bank

Answers

Answered by Anonymous
6

Answer:

In a class employee, there can be many states and methods. Some states of the class employee are as  follows:-

emp_name (String)- To store the name of the employee.

emp_id (Integer)- To store the unique Identification number, of employee.

emp_salary (Float)- To store the salary of an employee.

emp_leaves_allotted (Integer) -To store the number of leaves of an employee allotted.

emp_leaves_taken (Integer)- To store the number of leaves already taken.

Some methods of employee class are as follows:-

salary_calculate(int leaves_taken)- To calculate salary of an employee.

update_leave(int leaves_taken)- To calculate the number of leaves present.

Explanation:

Pls mark the BRAINLIEST!!!

Similar questions