Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Class or not to class
Message
De
09/04/2018 17:13:27
 
 
À
09/04/2018 17:07:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01659269
Message ID:
01659270
Vues:
76
>Hi
>This isn't a problem. Rather, it's just a discussion of something I'm curious about VFP.
>
>As c# developers know, we can't write a method/procedure/function in c# outside of a class.
>But in VFP you can.
>
>So, I have a co-worker who saw my VFP code that wasn't rapped in a class. He asked why?
>I'm new to VFP, so I just said "because you can in VFP".
>;-)

That's an easy one:

Because VFP does not always been OOP. It started as clone of dBase, which implies structured programming, then it added OOP but maintaining it's roots and compatibility.
That's why you can have procedures and funtions out of classes, and the same is true for almost any programming language pre-OOP era.
Fernando D. Bozzo
Madrid / Spain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform