public class ElementB
extends Element
Concrete implementation of an element, ElementB.
-
Constructor Summary
Constructors
Default constructor for ElementB.
-
Method Summary
void
Perform ElementB-specific behavior.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElementB
public ElementB()
Default constructor for ElementB.
-
Method Details
-
operationB
Perform ElementB-specific behavior.
- Returns:
- A message describing the operation.
-
accept
public void accept(Visitor visitor)
Accept a Visitor.
- Specified by:
accept in class Element
- Parameters:
visitor - The Visitor to accept.