//=================================================================================================
public class ColdSyrup extends ColdMedicine {
//-------------------------------------------------------------------------------------------------
    private boolean okForChildren;
//-------------------------------------------------------------------------------------------------
    public ColdSyrup(String newName,double newAmount,boolean newOKForChildren) {

        super(newName,newAmount);
        okForChildren = newOKForChildren;
        welcomeMessage();
    }
//-------------------------------------------------------------------------------------------------
    public boolean getOKForChildren() {

        return(okForChildren);
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
