Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I have a true BASE class for everything?
Message
From
26/01/2009 22:41:10
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01375878
Message ID:
01377211
Views:
25
>>>From what little I have learned about C# classes, I think you can indeed have a one ground-zero object class on which even different class types can be based.
>>
>>I thought I have some C# knowledge:) How can you do it in C#? IMHO you can't. I haven't seen such a thing even in C# 4.0. What am I missing?
>>
>>PS: If you mean Object you can downcast to it but can you modify it (Object class) in any way?
>>
>
>That's a valid point. Even though .NET has a ground-zero Object class from which all other classes inherit, you can't modify it.

For that matter, I think there's some sort of Object class in VFP, and a Control based on it, on which anything is based, but since we haven't ever seen it, can't subclass it, can't even instantiate, and can't influence the inheritance tree... this dream in which we can insert our own class between Control and TextBox doesn't even have its own pipe.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform