From 49c6374d741c77e5c4e41cea059cf72b89b7ddc6 Mon Sep 17 00:00:00 2001 From: Aesthetiful <62633768+DrChic0@users.noreply.github.com> Date: Mon, 1 Apr 2024 12:45:43 -0700 Subject: [PATCH] Add files via upload --- Practices/Sandwich.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Practices/Sandwich.java diff --git a/Practices/Sandwich.java b/Practices/Sandwich.java new file mode 100644 index 0000000..7027d66 --- /dev/null +++ b/Practices/Sandwich.java @@ -0,0 +1,17 @@ +public class Sandwich { + String name; + double price; + + public Sandwich(String name, double price) { + this.name = name; + this.price = price; + } + + String getName() { + return name; + } + + double getPrice() { + return price; + } +} \ No newline at end of file