Advertisement
Guest User

Subal (ShapeMain.java)

a guest
Mar 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement