package mille.bean;

public abstract class HazardCard extends Card
{
    public HazardCard(String name, CardImage image)
    {
        super(name, image);
    }
}

public abstract class RemedyCard extends Card
{
    public RemedyCard(String name, CardImage image)
    {
        super(name, image);
    }
}

public abstract class SafetyCard extends Card
{
    public SafetyCard(String name, CardImage image)
    {
        super(name, image);
    }
}

public abstract class DistanceCard extends Card
{
    public DistanceCard(String name, CardImage image)
    {
        super(name, image);
    }
}

@@ -569,28 +569,710 @@
 super(name, image);%0A    %7D%0A%7D%0A
+%0Apublic class AccidentCard extends HazardCard%0A%7B%0A    public AccidentCard(CardImage image)%0A    %7B%0A        super(%22Accident%22, image);%0A    %7D%0A%7D%0A%0Apublic class OutOfGasCard extends HazardCard%0A%7B%0A    public OutOfGasCard(CardImage image)%0A    %7B%0A        super(%22Out of Gas%22, image);%0A    %7D%0A%7D%0A%0Apublic class FlatTireCard extends HazardCard%0A%7B%0A    public FlatTireCard(CardImage image)%0A    %7B%0A        super(%22Flat Tire%22, image);%0A    %7D%0A%7D%0A%0Apublic class SpeedLimitCard extends HazardCard%0A%7B%0A    public SpeedLimitCard(CardImage image)%0A    %7B%0A        super(%22Speed Limit%22, image);%0A    %7D%0A%7D%0A%0Apublic class StopCard extends HazardCard%0A%7B%0A    public StopCard(CardImage image)%0A    %7B%0A        super(%22Stop%22, image);%0A    %7D%0A%7D

add HazardCard subtypes