Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Condishka {
  4. private char model;
  5. private byte mark;
  6. private boolean display;
  7. private char [] material;
  8. private int length, width, height;
  9. private double power;
  10. private char typeRefrigerant;
  11.  
  12.  
  13. public char getModel() {
  14. return model;
  15. }
  16.  
  17. public void setModel(char model) {
  18. this.model = model;
  19. }
  20.  
  21. public byte getMark() {
  22. return mark;
  23. }
  24.  
  25. public void setMark(byte mark) {
  26. this.mark = mark;
  27. }
  28.  
  29. public boolean isDiaplay() {
  30. return display;
  31. }
  32.  
  33. public void setDisplay(boolean display) {
  34. this.display = display;
  35. }
  36.  
  37. public char[] getMaterial() {
  38. return material;
  39. }
  40.  
  41. public void setMaterial(char[] material) {
  42. this.material = material;
  43. }
  44.  
  45. public int getLength() {
  46. return length;
  47. }
  48.  
  49. public void setLength() {
  50.  
  51. }
  52.  
  53. public int getWidth() {
  54. return width;
  55. }
  56.  
  57. public void setWidth(int length, int width,int height) {
  58. this.width = width;
  59. this.height = height;
  60. this.length = length;
  61. }
  62.  
  63. public int getHeight() {
  64. return height;
  65. }
  66.  
  67.  
  68. public double getPower() {
  69. return power;
  70. }
  71.  
  72. public void setPower(double power) {
  73. this.power = power;
  74. }
  75.  
  76. public char getTypeRefrigerant() {
  77. return typeRefrigerant;
  78. }
  79.  
  80. public void setTypeRefrigerant(char typeRefrigerant) {
  81. this.typeRefrigerant = typeRefrigerant;
  82. }
  83.  
  84. @Override
  85. public String toString() {
  86. return "Condishka{" +
  87. "model=" + model +
  88. ", mark=" + mark +
  89. ", diaplay=" + display +
  90. ", material=" + Arrays.toString(material) +
  91. ", length=" + length +
  92. ", width=" + width +
  93. ", height=" + height +
  94. ", power=" + power +
  95. ", typeRefrigerant=" + typeRefrigerant +
  96. '}';
  97. }
  98.  
  99. public Condishka(char model, byte mark, boolean display, char[] material, int length, int width, int height, double power, char typeRefrigerant) {
  100. this.model = model;
  101. this.mark = mark;
  102. this.display = display;
  103. this.material = material;
  104. this.length = length;
  105. this.width = width;
  106. this.height = height;
  107. this.power = power;
  108. this.typeRefrigerant = typeRefrigerant;
  109. }
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement