Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace basics
  8. {
  9. class Employee
  10. {
  11. private string position;
  12. private double salary;
  13. private string department;
  14.  
  15.  
  16. public Employee(string position, double salary, string department)
  17. {
  18. this.position = position;
  19. this.salary = salary;
  20. this.department = department;
  21.  
  22. }
  23. public string PPosition
  24. {
  25. set
  26. {
  27. if(value == "Manager" || value == "Janitor" || value == "Secretary" || value == "Director")
  28. position = value;
  29. }
  30. get
  31. {
  32. return position;
  33. }
  34. }
  35. public double SSalary
  36. {
  37. set
  38. {
  39. if (value >= 50000 && value <= 200000)
  40. if (value >= 10000 && value <= 15000)
  41. if (value >= 15000 && value <= 25000)
  42. if (value >= 100000 && value <= 500000)
  43. salary = value;
  44.  
  45. }
  46. get
  47. {
  48. return salary;
  49. }
  50.  
  51. }
  52. public string department
  53. {
  54. set
  55. {
  56. if()
  57. }
  58. }
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement