[V4RB] The correct OOP way?
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Dec 5 00:13:27 CST 2003
on 12/5/03 12:02 AM, Carsten Friehe at rblists at carsten-friehe.de wrote:
Hi Carsten,
> I don't know where my answer from earlier today is.
>
>> All depend on your task.
>
> I have a few windows where I am opening the cursor (instantiatin the class)
> and then I select the records and get all the values to display them.
> That's all.
>
>> BTW, do you ask about Super -- as pointer on top level object?
>> or about Super as common parent class for your classes?
>
> I meant the parent class of my class. If I make eg. VCursor the super of my
> class, will it have any advantages or not?
Well,
OOP say:
you must do common parent class,
if you can move there some common data members and methods.
Advantage is that:
1) you remove code duplication.
2) you get polymorphism, i.e. Objects of different child classes
can be considered as set of parent instances.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list