O'Reilly logo

Joy of Patterns: Using Patterns for Enterprise Development, The by Brandon Goldfedder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SimplePart.java

package ProductConfig;
import java.util.Vector;
public class SimplePart extends BasicPart
{
SimplePart(String name, String description, double price)
{
    super(name, description, price);
}

public void addPart(Part part) throws NotACompositeException
{
    throw new NotACompositeException();
}

public void removePart(Part part) throws NotACompositeException
{
    throw new NotACompositeException();
}

}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required