daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Dec 19th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class Square implements Shape
  3. {
  4.     private double side;
  5.    
  6.     public Square()
  7.     {
  8.         this(1);
  9.        
  10.     }
  11.     public Square(double side)
  12.     {
  13.         this.side=side;
  14.     }
  15.     public double area()
  16.     {
  17.         return side*side;
  18.     }
  19.  
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top