G
gigal
Currently, the class is defined as,
Class CarClass
{
EngineClass e;
SeatClass s[5];
CDPlayerClass cd;
....
};
In the future, a new member of class GPSClass type could be added for
example. EngineClass, SeatClass, and CDPlayerClass could change their
implementation of operations.
How to design CarClass?
Thank you very much!
Class CarClass
{
EngineClass e;
SeatClass s[5];
CDPlayerClass cd;
....
};
In the future, a new member of class GPSClass type could be added for
example. EngineClass, SeatClass, and CDPlayerClass could change their
implementation of operations.
How to design CarClass?
Thank you very much!