silentkiler029

Test.java

Dec 5th, 2021
607
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Practice;
  2.  
  3. public class Test {
  4.     public static void main( String[] args ) {
  5.         Box box1 = new Box(10, 5, 2);
  6.         System.out.println( box1.getVolume() );
  7.  
  8.         Box box2 = new Box(7, 3, 2);
  9.         System.out.println( box2.getVolume() );
  10.  
  11.         Box box3 = new Box();
  12.         System.out.println( box3.getVolume() );
  13.  
  14.         Box box4 = new Box(10);
  15.         System.out.println( box4.getVolume() );
  16.     }
  17. }
  18.  
  19.  
RAW Paste Data