posted 18 years ago
This doesn't make sense to me:
that's like saying
what kind of object is fred? is satchmo? fred is an instance of Person, but satchmo is an instance of FredsCat.
unless your in a jazz music program, then satchmo could be a Person.
You can only have an instance of a class (or interface).
I think what you are trying to get at is, given two object references, you want to know if they are of the same type. Is that what you are asking?
[ January 08, 2007: Message edited by: Fred Rosenberger ]
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors