Re: isa
Re: isa
- Subject: Re: isa
- From: Phillip Morelock <email@hidden>
- Date: Sun, 02 Jun 2002 22:09:00 -0700
On 6/2/02 9:52 PM, "Jeff LaMarche" <email@hidden> wrote:
>
No, they wouldn't. Although Java is strongly typed, it is still a fairly
>
dynamic
>
language, and this is something that is done in a lot of places - for example
>
in java.util.Vector and java.util.HashMap. You declare the equivalent of
>
NSObject,
>
which is simply Object. Although subclassing from Object in Java is not as
>
commonly done as subclassing from NSObject in Cocoa, it is still good form,
>
and my experience is that when you take an Object as an argument, it will
>
even accept Java objects that were not subclassed from Object (although it
>
doesn't seem like it should).
All objects in java extend java.lang.Object, whether indirectly (through
it's parent class, it's parent's parent, it's....) or directly. Directly
extending Object is done for the programmer without the programmer writing
"extends Object". It is the default unless you extend something else, but
Object is "up the chain" from every class in java.
fillup
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
- Follow-Ups:
- Re: isa
- From: Shawn Erickson <email@hidden>
References: | |
| >Re: isa (From: Jeff LaMarche <email@hidden>) |