>With regard to comparing Java and C++ to VFP...
>
>Because VFP is weakly typed, it doesn’t really care about interfaces – all it cares about is applying operations to objects (in fact, Java’s interface keyword would be wasted in VFP). This means that inheritance in VFP is different from inheritance in C++ or Java, where you often inherit simply to establish a common interface. In VFP, the only reason you inherit is to inherit an implementation – to re-use the code in the base class.
>
>thanks for your comments.
>
>John
I see what you are saying, in my experience there is a reason to inherit to define an interface. I've heard these called "template classes" but are similar to a template. For example a data object with something like. Aggreed the weak typing of VFP makes this odd, but it does setup a common interface for all of the business objects. Just a thought.
Define class aBusinessObject
oDataObject = .null.
Function Load(cPK as String) as Boolean
EndFunc
Function Save() as Boolean
EndFunc
EndDefine