<<< Interface inheriting other interfaces     Index     interface constants example >>>

16. Product interface examples


  • A ProductReader interface

    
    public interface ProductReader
    {
        Product getProduct(String code);
        String getProductsString();
    }
    
    
  • A ProductWriter interface

    
    public interface ProductWriter
    {
        boolean addProduct(Product p);
        boolean updateProduct(Product p);
        boolean deleteProduct(Product p);
    }
    
    

<<< Interface inheriting other interfaces     Index     interface constants example >>>