|
-
Oct 5th, 2009, 06:06 PM
#23
Re: [RESOLVED] Inheritance and Polymorphism
 Originally Posted by Shaggy Hiker
So an integer doesn't really inherit from type Object, for the sake of efficiency, though it acts as if it does, for the sake of consistency.
There's no acting. All structures, including Int32, are derived from the System.ValueType class, which inherits Object. Absolutely every type in the .NET Framework is derived from the Object class. Just read the documentation for any type and check its inheritance hierarchy. You'll see that every single one of them starts at System.Object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|