|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Dicussion: Is Object Class, the Root of all Hierarchies?
If you have any questions or comments about this article then please post them here.
This forum post relates to this article |
|
#2
|
|||
|
|||
|
IFoo ifoo = object f
Since you are declaring the ifoo object of type IFoo equal to an existing Foo object that is already instantiated and since the Foo object is defined as a class, which automatically inherits from the Object class, aren't the results you are reporting expected?
You are assigning the ifoo object a reference to the f object. The fact that the Foo class inherits from an interface instead of another class doesn't change the fact that it IS a class and still automatically inherits from the Object class from what I can tell. Is it that obvious to anyone else here? Have I just not had enough coffee this morning and I'm missing something profound here? |
|
#3
|
|||
|
|||
|
Re: IFoo ifoo = object f
Quote:
I'm with you Skoon.. Even though my view is from a Java standpoint, it's still obvious that whether or not a class is explicity extended from the class Object, it's still a child of Object.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Dicussion: Is Object Class, the Root of all Hierarchies? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|