Class ShoppingExample.Product

  • Enclosing class:
    ShoppingExample

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

      Constructors 
      Constructor Description
      Product​(java.lang.String name, float price)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      float getPrice()  
      • Methods inherited from class java.lang.Object

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

      • Product

        public Product​(java.lang.String name,
                       float price)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getPrice

        public float getPrice()