Class Subcategory

    • Constructor Detail

      • Subcategory

        public Subcategory()
      • Subcategory

        public Subcategory​(String name)
        Creates a new instance of Category with a given name.
        Parameters:
        name - Name of the category.
    • Method Detail

      • getName

        public String getName()
        Returns the name of the subcategory.
        Returns:
        Returns the name of the subcategory.
      • setName

        public void setName​(String name)
        Set the name of the subcategory.
        Parameters:
        name - Set the name of the subcategory.
      • clone

        public Object clone()
        Clones the object.
        Overrides:
        clone in class Object
        Returns:
        Clone of the object.
      • toString

        public String toString()
        String representation of the object.
        Overrides:
        toString in class Object
        Returns:
        String representation of the object.