I have a pre-defined struct
(unchangable)
struct ACCOUNT
{
char IDAccount[MAX_IDACCOUNT_LENGTH];
char fullName[MAX_FULLNAME_LENGTH];
int type;
};
Now, I want to override the type of the type
member variable. Is this a right way doing it?
enum ACCOUNT_TYPE {ACCOUNT_TYPE_SV, ACCOUNT_TYPE_CB, ACCOUNT_TYPE_OT};
struct Account : virtual ACCOUNT {
ACCOUNT_TYPE type;
};