Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.mycompany.ex17;
- public class Box {
- private double height;
- private double width;
- private double depth;
- // alt + insert
- public Box(double height, double width, double depth) {
- this.height = height;
- this.width = width;
- this.depth = depth;
- }
- public double getHeight() {
- return height;
- }
- public void setHeight(double height) {
- this.height = height;
- }
- public double getWidth() {
- return width;
- }
- public void setWidth(double width) {
- this.width = width;
- }
- public double getDepth() {
- return depth;
- }
- public void setDepth(double depth) {
- this.depth = depth;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement