public class Subcategory
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Subcategory() |
Subcategory(java.lang.String name)
Creates a new instance of Category with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the object.
|
java.lang.String |
getName()
Returns the name of the subcategory.
|
void |
setName(java.lang.String name)
Set the name of the subcategory.
|
java.lang.String |
toString()
String representation of the object.
|
public Subcategory()
public Subcategory(java.lang.String name)
name - Name of the category.public java.lang.String getName()
public void setName(java.lang.String name)
name - Set the name of the subcategory.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2025. All rights reserved.