F
Frank
Hello,
how should I do this?
Class X
classes A, B and C inherit from X.
A,B and C are basically the same with the exception of 1 routine that is
different for each class and is used by several methods in the classes. The
only way I see is to put all methods from X in A,B and C. But then I don't
see the advantages of OO!?!?
How can I do this in a better way?
Thanks
Frank
how should I do this?
Class X
classes A, B and C inherit from X.
A,B and C are basically the same with the exception of 1 routine that is
different for each class and is used by several methods in the classes. The
only way I see is to put all methods from X in A,B and C. But then I don't
see the advantages of OO!?!?
How can I do this in a better way?
Thanks
Frank