Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I have a true BASE class for everything?
Message
De
26/01/2009 22:41:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01375878
Message ID:
01377211
Vues:
18
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform