Mention five states and two methods of class bank
Answers
Answered by
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
Math,
5 months ago
Political Science,
5 months ago
Math,
5 months ago
English,
10 months ago
English,
10 months ago
Chemistry,
1 year ago
Computer Science,
1 year ago
English,
1 year ago