Part.java

package ProductConfig;
import java.io.PrintStream;

class NotACompositeException extends Exception {
    NotACompositeException() { super(); }
    NotACompositeException(String s) { super(s); }
}

public abstract class Part
{

public abstract double getPrice();

public abstract String getName();

public abstract String getDescription();

public abstract ResourceList getResourceList();

public abstract void displayInvoice(PrintStream stream, int level);

public abstract void addPart(Part part) throws
      NotACompositeException;

public abstract void removePart(Part part) throws
      NotACompositeException;;
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.175.182