Skip to content

Instantly share code, notes, and snippets.

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
public static void main(String[] args) {
Pizza p1 = new Pizza("Margherita", 189.0, "Large");
Pizza p2 = new Pizza("Pepperoni", 210.0, "Medium");
Drink d1 = new Drink("Cola", 45.0, true);
Drink d2 = new Drink("Tea", 30.0, false);