做这个:
if (myObject instanceof B) { // do something for B} else (myObject instanceof C) { // do something for C} else { // do something for A}
欢迎分享,转载请注明来源:内存溢出
做这个:
if (myObject instanceof B) { // do something for B} else (myObject instanceof C) { // do something for C} else { // do something for A}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)