Interface UPC

All Known Implementing Classes:
Book, Notebook

public interface UPC

This interface defines the methods that a UPC-identified object must have.


Method Summary
 long getUPC()
          Any class that implements the UPC interface must be able to say what its UPC code is.
 

Method Detail

getUPC

public long getUPC()
Any class that implements the UPC interface must be able to say what its UPC code is.

Returns:
the numeric UPC value. UPC codes are 12 digits in length.