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;; }
18.188.175.182