1. Takayuki KONDO
  2. javadj_extra

Commits

Takayuki KONDO  committed 6f60df3

add Item class and Vegitables Meat Spice implements Item

  • Participants
  • Parent commits 638ae87
  • Branches default

Comments (0)

Files changed (4)

File curry/Item.java

View file
+public interface Item{
+    public int getPrice();
+}

File curry/Meat.java

View file
-public abstract class Meat{
+public abstract class Meat implements Item{
 
-}
+}

File curry/Spice.java

View file
-public class Spice{
-}
+public class Spice implements Item{
+    public int getPrice(){
+	return 0;
+    }
+}

File curry/Vegetables.java

View file
-public abstract class Vegetables{
+public abstract class Vegetables implements Item{
 }