daily pastebin goal
53%
SHARE
TWEET

Pizza

a guest Feb 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package ObjectivesJava;
  2.  
  3. public class ObjectsPizzaProgram {
  4.  
  5.     public static void main(String[] args) {
  6.         // TODO Auto-generated method stub
  7.         Pizza pizza1 = new Pizza("Diavolo", 8.75);
  8.         Pizza pizza2 = new Pizza("Frutti al Mare", 9.00);
  9.         Pizza pizza3 = new Pizza("Alla Pollo", 7.50);
  10.        
  11.         System.out.println(pizza1);
  12.         System.out.println(pizza2);
  13.         System.out.println(pizza3);
  14.     }
  15.  
  16. }
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