>>388
public void 列挙(Object x)
{
 if (x is ClassA)
  ((ClassA) x ).doSometiong();
 if (x is ClassB)
  ((ClassB) x ).doSometiong();
}