Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > What's the difference between and instance and an object?

Reply
Thread Tools

What's the difference between and instance and an object?

 
 
Lewis Bloch
Guest
Posts: n/a
 
      06-10-2011
On Jun 8, 8:51*am, Abu Yahya <abu_ya...@invalid.com> wrote:
> On 6/6/2011 10:24 PM, Mayeul wrote:
>
> > In other words, it cannot possibly build an instance of any other class,
> > neither Object nor anything.

>
> Won't 'A' be an instanceOf Object?


An object of any type T is automatically and inherently an instance of
any type S that is a supertype of T, by the very definition of
subtyping. Subtypes embody the /is-a/ relationship.

--
Lew
 
Reply With Quote
 
 
 
 
Abu Yahya
Guest
Posts: n/a
 
      06-11-2011
On 6/10/2011 11:36 PM, Lewis Bloch wrote:
> On Jun 8, 8:51 am, Abu Yahya<abu_ya...@invalid.com> wrote:
>> On 6/6/2011 10:24 PM, Mayeul wrote:
>>
>>> In other words, it cannot possibly build an instance of any other class,
>>> neither Object nor anything.

>>
>> Won't 'A' be an instanceOf Object?

>
> An object of any type T is automatically and inherently an instance of
> any type S that is a supertype of T, by the very definition of
> subtyping. Subtypes embody the /is-a/ relationship.
>


Thanks, Lew, for the explanation.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is difference between Class variables and Instance variables? rahul8143@gmail.com Java 10 06-06-2011 06:43 AM
How do I tell the difference between a class C and the singletonclass of an instance of C deanwampler@gmail.com Ruby 3 11-02-2007 08:52 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
difference between class methods and instance methods John M. Gabriele Python 18 02-18-2005 05:17 PM
Exact difference between 'const char *' and 'char *', also diff between 'const' and 'static' Santa C Programming 1 07-17-2003 02:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57