Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ObjectivesJava;
- public class ObjectsPizzaProgram {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Pizza pizza1 = new Pizza("Diavolo", 8.75);
- Pizza pizza2 = new Pizza("Frutti al Mare", 9.00);
- Pizza pizza3 = new Pizza("Alla Pollo", 7.50);
- System.out.println(pizza1);
- System.out.println(pizza2);
- System.out.println(pizza3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement