Advertisement
sergAccount

Untitled

Dec 13th, 2020
870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.25 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.ja9;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Box {
  13.    
  14.     private double x,y,z;
  15.     private double w,h,d;
  16.  
  17.     public Box(double x, double y, double z, double w, double h, double d) {
  18.         this.x = x;
  19.         this.y = y;
  20.         this.z = z;
  21.         this.w = w;
  22.         this.h = h;
  23.         this.d = d;
  24.     }
  25.     //
  26.  
  27.     public double getX() {
  28.         return x;
  29.     }
  30.  
  31.     public void setX(double x) {
  32.         this.x = x;
  33.     }
  34.  
  35.     public double getY() {
  36.         return y;
  37.     }
  38.  
  39.     public void setY(double y) {
  40.         this.y = y;
  41.     }
  42.  
  43.     public double getZ() {
  44.         return z;
  45.     }
  46.  
  47.     public void setZ(double z) {
  48.         this.z = z;
  49.     }
  50.  
  51.     public double getW() {
  52.         return w;
  53.     }
  54.  
  55.     public void setW(double w) {
  56.         this.w = w;
  57.     }
  58.  
  59.     public double getH() {
  60.         return h;
  61.     }
  62.  
  63.     public void setH(double h) {
  64.         this.h = h;
  65.     }
  66.  
  67.     public double getD() {
  68.         return d;
  69.     }
  70.  
  71.     public void setD(double d) {
  72.         this.d = d;
  73.     }
  74. }
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement