Shokuryouhin.java



public class Shokuryouhin extends Shouhin {

    public String kigen;

    public Shokuryouhin ( String s1, int i, String s2 ) {

        super( s1, i );
        kigen = s2;
    }

    public String toString() {

        String info = super.toString() + ":" + kigen;
        return info;
    }
}