[josm-dev] Java question
Hakan Tandogan
hakan at gurkensalat.com
Sun Feb 24 14:21:14 GMT 2008
David Earl wrote:
> My Java knowledge has let me down and I haven't been able to frame a
> suitable Google query. Can someone tell me how in Java I test whether
> some object is a subclass or superclass of some class (or other object)?
>
> I know how to ask if something is an instance of a particular class
> (o.class() == C.class) but if o could be a subclass of c how do express
> this?
if (o typeof c) ?
Regards,
Hakan
--
The Key To Immortality Is First Living A Life Worth Remembering.
More information about the josm-dev
mailing list