TsetsoP

Tomov zadacha

Oct 20th, 2021 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. //CAR
  2. public class Car {
  3. String brand;
  4. String model;
  5. int year;
  6. double price;
  7. String color;
  8.  
  9. public Car(String brand, String model, int year, double price, String color){
  10. this.brand = brand;
  11. this.model = model;
  12. this.year = year;
  13. this.price = price;
  14. this.color = color;
  15. }
  16.  
  17. public String getBrand(){
  18. return brand;
  19. }
  20.  
  21. public void setBrand(String brand){
  22. this.brand = brand;
  23. }
  24.  
  25. public String getModel() {
  26. return model;
  27. }
  28.  
  29. public void setModel(String model) {
  30. this.model = model;
  31. }
  32.  
  33. public int getYear() {
  34. return year;
  35. }
  36.  
  37. public void setYear(int year) {
  38. this.year = year;
  39. }
  40.  
  41. public double getPrice() {
  42. return price;
  43. }
  44.  
  45. public void setPrice(double price) {
  46. this.price = price;
  47. }
  48.  
  49. public String getColor() {
  50. return color;
  51. }
  52.  
  53. public void setColor(String color) {
  54. this.color = color;
  55. }
  56. }
  57. ======================================================
  58. //STORE
  59. import java.util.ArrayList;
  60.  
  61. public class Store {
  62. String name;
  63. String adress;
  64. ArrayList<Car> arrCar = new ArrayList<>();
  65. ArrayList<JobAplication> aplicants = new ArrayList<>();
  66. }
  67. ===============================================================
  68. //JOBAPLICATION
  69. public class JobAplication {
  70. String name;
  71. double experience;
  72. String position;
  73. String education;
  74.  
  75.  
  76. public JobAplication(String name, double experience, String position, String education){
  77. this.name = name;
  78. this.experience = experience;
  79. this.position = position;
  80. this.education = education;
  81. }
  82.  
  83. public String getName(){
  84. return name;
  85. }
  86.  
  87. public double getExperience() {
  88. return experience;
  89. }
  90.  
  91. public String getPosition() {
  92. return position;
  93. }
  94.  
  95. public String getEducation() {
  96. return education;
  97. }
  98.  
  99. public boolean requirments(double experience, String education, String position){
  100. if(experience > 1 && education.equals("средно") || education.equals("висше")){
  101.  
  102. }else{
  103.  
  104. }
  105.  
  106. }
  107. }
  108. ===========================================
  109. //APP
  110. public class app {
  111. public static void main(String[] args) {
  112.  
  113. }
  114. }
  115.  
Add Comment
Please, Sign In to add comment