daily pastebin goal
8%
SHARE
TWEET

Subal (ShapeMain.java)

a guest Mar 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package shape;
  6.  
  7. /**
  8.  *
  9.  * @author user
  10.  */
  11. public class ShapeMain {
  12.     public static void main(String[] args)
  13.     {
  14.         Rectangle rect1 = new Rectangle();
  15.         rect1.area();
  16.         Rectangle rect2 = new Rectangle(5, 2);
  17.         rect2.area();
  18.     }
  19. }
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