This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Doubt is obvious. Ok Do you belive that every String is an Object Or Do you belive that every Chair or Table is a Furniture...??
If you DO then why, simply because String extends Object and ofcourse Chair is a Furniture (we can say Chair extends Furniture)
If we say that String is an object or Chair is a Furniture that means we say that String is an instance of Object or Chair is an instance of Furniture.
Similary every Pine is also instance of Tree you will get the same result if you try Pine isntanceof Object.......would'nt you?
Hence every subclass Object is ofcourse an instance of its super class
Hope it helps [ October 11, 2005: Message edited by: Sandeep Chhabra ]
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com