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