Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Class or not to class
Message
From
09/04/2018 17:13:27
 
 
To
09/04/2018 17:07:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01659269
Message ID:
01659270
Views:
78
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform