Class ShoppingExample.Customer

  • Enclosing class:
    ShoppingExample

    public static class ShoppingExample.Customer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Customer​(java.lang.String name, int discount)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDiscount()  
      java.lang.String getName()  
      void setDiscount​(int discount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Customer

        public Customer​(java.lang.String name,
                        int discount)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getDiscount

        public int getDiscount()
      • setDiscount

        public void setDiscount​(int discount)