Clas car {
Public:
Car(int,int,int,int);
Int Engine;
Int maxSpeed;
int HorsePower;
};
car::car(int a, int b, int c)
{
engine = a;
maxSpeed = b;
Horsepower = c;
// in my main I would have ..
car Opel (2,2,2);
car Ferrari (99,99,2);
// and by doing opel == ferarri => it should say which car has the better engine,maxspeed,horsepower..
}
I am a bit lost on how to overload operator, and it would help me alot, if someone could tell how to do it.. I understand the concept of using and why it used, but how someone would do, that ....