|
-
Mar 2nd, 2002, 12:07 PM
#1
Thread Starter
Addicted Member
Structures Question(s)??
Are the .Net primitive data types classes or structures?? Also, is a structure considered an object? Can you derive another structure from another structures? Sorry for so many questions, but my book is unclear about this topic.
-
Mar 2nd, 2002, 05:08 PM
#2
Frenzied Member
-
Mar 4th, 2002, 10:12 AM
#3
the data types are class objects...everything in .NET is treated as such.
i believe yes you should be able to derive a struct from a struct.
-
Mar 4th, 2002, 10:19 AM
#4
Hyperactive Member
The type hierarchy for .net starts off with "object" at the top, under which is
Code:
Object
String (note, not a primitive type)
Array
ValueType
PrimitiveTypes
Enum
Structure
Exception
Delegate
Multicast Delegate
Class
-
Mar 4th, 2002, 12:20 PM
#5
Lively Member
Primitive datatypes are value types (like structs) not reference types (like classes).
And a struct can't be derived from another struct !
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
|