|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Product
The Product interface is implemented by any class which represents a rentable product in our point of sale. This interface has been created to simplify the creation of future products to be rented or sold. In our example, DVD implements this interface. The interface provides common accessor methods for the fields.
Method Summary | |
---|---|
BarCode |
getBarCode()
Accessor method for identifying the bar code |
double |
getPrice()
Accessor method for unit price |
Method Detail |
---|
BarCode getBarCode()
double getPrice()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |