edu.rice.comp211.laundry.garment
Class Shirt
java.lang.Object
edu.rice.comp211.laundry.garment.Garment
edu.rice.comp211.laundry.garment.Shirt
public class Shirt
- extends Garment
Variant class of Garment union.
Shirt
public Shirt(String a)
accept
public <R> R accept(GarmentVisitor<R> v)
- Description copied from class:
Garment
- Executes ("accepts") a visitor for this garment
- Specified by:
accept
in class Garment
- Type Parameters:
R
- The return type of the visitor (determined by the visitor being used)- Parameters:
v
- The visitor to accept
- Returns:
- The return value of the visitor
toString
public String toString()
- Overrides:
toString
in class Object