Posted by Jerry Stuckle on 08/27/05 02:05
Tony Marston wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:UKedncCCMIZIp5PeRVn-3A@comcast.com...
>
>>Kenneth Downs wrote:
>
> <snip>
>
>>As to "Anything possible in OO can be done without it". How do you do
>>inheritance and polymorphism in non-OO code? I'd love to see an example
>>of that. And as above - how do you ensure encapsulation?
>
>
> I used a non-OO language called UNIFACE in which I achieved encapsulation
> and polymorphism. There was a sort of inheritance, but that was only one
> level deep when a component was built from a template. You could change code
> in the template, and that change would be inherited by all components based
> on that template the next time they were recompiled.
>
Not familiar with UNIFACE - but it sounds like it had some rudimentary OO
constructs in it - at least inheritance and polymorphism.
But can you do it in a pure non-OO language such as C, Basic, PASCAL or others
(I'm not talking about OBJECT - xxx).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|