Zakaria,
>That is how it's done in c#. I want to do this in visual foxpro. But I am asking myself if there are better OOP techniques. Furhermore is the above a known OOP Pattern, so yes how is it called. Moreover how would you set it up in foxpro? Especially using foxpro flexibility to model the data, which in c# can't be done easily . For example modeling the Insured data would just need a table or cursor with fields like "Name","Age","EndAge",... With just a scatter memvar you can make an object of it and pass it as an object in the above chain, am I right?
Yes, it's very easy to create a data object like this and pass it around your system. I can either be just a short lifetime LOCAL object:
local loData
scatter name loData memo
or it can be a property of your class itself:
scatter name this.oInsuredData memo
>Sorry for the lengthy message and my poor enlish.
Your English is quite good.