Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class vs Prg
Message
From
11/04/2002 11:15:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00639155
Message ID:
00643770
Views:
16
>>That's right Terry - Polymorphism and inheritance are your friends!
>>Don't forget about encapsulation, too!!!
>>Your neck will continue twitching, I'm sure :)
>>mondo regards [Bill]
>
>"Encapsulation", Ouch!

The way I understand it, encapsulation simply means that objects are tightly coupled to their properties / methods.

In the old times, with functions, you could pass any "object" (variable or array that represented something in your system) to a UDF.

With a syntax ThisForm.DoSomeMethod(), DoSomeMethod() can only refer to ThisForm.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform