Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace basics
- {
- class Employee
- {
- private string position;
- private double salary;
- private string department;
- public Employee(string position, double salary, string department)
- {
- this.position = position;
- this.salary = salary;
- this.department = department;
- }
- public string PPosition
- {
- set
- {
- if(value == "Manager" || value == "Janitor" || value == "Secretary" || value == "Director")
- position = value;
- }
- get
- {
- return position;
- }
- }
- public double SSalary
- {
- set
- {
- if (value >= 50000 && value <= 200000)
- if (value >= 10000 && value <= 15000)
- if (value >= 15000 && value <= 25000)
- if (value >= 100000 && value <= 500000)
- salary = value;
- }
- get
- {
- return salary;
- }
- }
- public string department
- {
- set
- {
- if()
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement