Not necessarily hard I just have a hard time where to exactly inherit the , I have a bass class and 2 separate classes which inherit the base class
Lets class base class - Class A
Other two classes - Class B and Class C
Class A has the following pseudo code schema
public:
int returnDay() const;
float returnAmount() const;
string returnCust() const;
Constructor(parametized default values);
void Initialize(int, float, string);
private:
int day;
float amount;
string customer;
Class B is very similiar
public:
int returnQuantity() const;
string returnItemNum() const;
Constructor(parametized default values);
void Initialize(int, float, string, string, int);
private:
string itemNumber;
int quantity
Class C is very much like B
If i know how to implement class B while inheriting from the base Class A then I can do it to the other class
I dont exactly know what to inherit my guess is the Initialize function in the base class when your implementing the Initialize function in Class B ? but who knows its not working quite right