B
Bit byte
I have a class BaseApplication, from which I am deriving two classes A
and B.
In class BaseApplication, I have a virtual method as ff:
virtual void saveToDb(const char*);
I will like to overload this function in A and B, because I want to have
the ff (for example)
in class A:
void saveToDb(const struct relevant_to_a_* );
and in class B :
void saveToDb(const struct relevant_to_b_* );
void saveToDb(const struct also_relevant_to_b_* );
void saveToDb(const struct yet_another_one_relevant_to_b_* );
Is this possible? (also - are there any pitfalls I should be aware of? -
and B.
In class BaseApplication, I have a virtual method as ff:
virtual void saveToDb(const char*);
I will like to overload this function in A and B, because I want to have
the ff (for example)
in class A:
void saveToDb(const struct relevant_to_a_* );
and in class B :
void saveToDb(const struct relevant_to_b_* );
void saveToDb(const struct also_relevant_to_b_* );
void saveToDb(const struct yet_another_one_relevant_to_b_* );
Is this possible? (also - are there any pitfalls I should be aware of? -