Added IsSameType() virtual function to Item and derived function to A, B, C, and D.