I have this class:
class Taxi {
Wheel myWheel[4];
public:
Taxi();
};
and Wheel is another class contain:
class Wheel{
int radius,
tickness;
public:
Wheel(int,int);
};
now, what i want to do is to initialize "myWheel[4]" in initialization list of Taxi constructor, like this:
Taxi::Taxi () :Wheel[0](5,5), Wheel[1](3,3), Wheel[2](5,5), Wheel[3](3,3) {
cout << "Ctor of Taxi" << endl;
}
but it doesn't work and i really need some HELP, thanks :)