Dear Members,
After designing a CLIENT class and i have 2 types of clients (AGENT & AIRLINE) so i thought of 2 inherited classes of this parent class. The AGENT class is identical to the parent class, so is it right to have such identical child class? knowing that the 2 child classes are related to each other ' An AGENT handles a group of airlines in a certain time interval and an AGENT may be a billable customer(Recieves bills generated) and other times an AIRLINE is billable.
I'm in a mess, can a child class instantiate its parent class?!
After designing a CLIENT class and i have 2 types of clients (AGENT & AIRLINE) so i thought of 2 inherited classes of this parent class. The AGENT class is identical to the parent class, so is it right to have such identical child class? knowing that the 2 child classes are related to each other ' An AGENT handles a group of airlines in a certain time interval and an AGENT may be a billable customer(Recieves bills generated) and other times an AIRLINE is billable.
I'm in a mess, can a child class instantiate its parent class?!