G
Guest
I have class A that does everything with table A and class B that does
everything with table B.
Now I'm working on class C (which I created) which does everything with
table C AND also inserts to table A and to table B. So in my case, when I
insert to table C, I will also insert to A and B. Since I can't inherit from
two classes simultaneously and an Insert to C automatically requires an
Insert to A & B, I initially thought of having an Insert method on C that
then calls insertToC and then instantiate classes A & B and call their
respective Insert methods. Is this the correct way?
Thanks.
everything with table B.
Now I'm working on class C (which I created) which does everything with
table C AND also inserts to table A and to table B. So in my case, when I
insert to table C, I will also insert to A and B. Since I can't inherit from
two classes simultaneously and an Insert to C automatically requires an
Insert to A & B, I initially thought of having an Insert method on C that
then calls insertToC and then instantiate classes A & B and call their
respective Insert methods. Is this the correct way?
Thanks.