package visitor; public class Card extends Equipment { public Card(String name) { super(name); } @Override public void Accept(EquipmentVisitor v) { v.VisitCard(this); }}