Guest User

Untitled

a guest
Apr 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package PipesRUs;
  6.  
  7.  
  8. /**
  9. *
  10. * @author Gavin Brooker
  11. */
  12. public abstract class Pipes {
  13. private double pDiameter;
  14. private int pPlasticGrade;
  15. private int pColour;
  16. private boolean pInsulation;
  17. private boolean pReinforcement;
  18. private int pQuantity;
  19.  
  20. public Pipes(){
  21. }
  22.  
  23. public Pipes(double diameter, int plasticGrade, int colour,
  24. boolean insulation, boolean reinforcement, int quantity){
  25. pDiameter = diameter;
  26. pPlasticGrade = plasticGrade;
  27. pColour = colour;
  28. pInsulation = insulation;
  29. pReinforcement = reinforcement;
  30. pQuantity = quantity;
  31. }
  32.  
  33. public double getpDiameter() {
  34. return pDiameter;
  35.  
  36. //}
  37. public double CostOfPipes(){
  38. double radius = getpDiameter()/2.0;
  39. return radius;
  40. }
  41. }
Add Comment
Please, Sign In to add comment