@@ -0,0 +1,865 @@
+/**%0A * %0A */%0Apackage org.dimigo.oop;%0A%0A/**%0A * org.dimigo.oop%0A *  %5C_ Snack%0A *%0A * Snack%0A *%0A * @author chalk%0A * @version 1.0.0%0A * @since Apr 6, 2017%0A */%0Apublic class Snack %7B%0A%09private String name, company;%0A%09private int price, number;%0A%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%0A%09public String getCompany() %7B%0A%09%09return company;%0A%09%7D%0A%0A%09public void setCompany(String company) %7B%0A%09%09this.company = company;%0A%09%7D%0A%0A%09public int getPrice() %7B%0A%09%09return price;%0A%09%7D%0A%0A%09public void setPrice(int price) %7B%0A%09%09this.price = price;%0A%09%7D%0A%0A%09public int getNumber() %7B%0A%09%09return number;%0A%09%7D%0A%0A%09public void setNumber(int number) %7B%0A%09%09this.number = number;%0A%09%7D%0A%09%0A%09public int calcPrice() %7B%0A%09%09return price * number;%0A%09%7D%0A%09%0A%09public String toString() %7B%0A%09%09return String.format(%22%EC%9D%B4%EB%A6%84 : %25s%25n%EC%A0%9C%EC%A1%B0%EC%82%AC : %25s%25n%EA%B0%80%EA%B2%A9 : %25,d%EC%9B%90%25n%EA%B0%9C%EC%88%98 : %25d%EA%B0%9C%25n%22, name, company, price, number);%0A%09%7D%0A%7D%0A

Add Snack