class car {
private:
int wheel, sets, gairlever, gairs;
char *color;
public:
/*Get Functions*/
int getsets();
int getwheel();
int getgairlever();
int getgairs();
void operator = (const car &c);
car(); //--- parameterless constructors
/*Display function*/
void display(){
cout << "\n";
cout << "OK... Now we have the record of yor car features! " << "\n";
cout << "Your car has " << " " << getwheel()<< " " << "Wheels" << "\n";
cout << "Your car has " << " " << getsets() << " " << "sets" << "\n";
cout << "Your car has " << " " << getgairlever() << " " << "gairlever" << "\n";
cout << "Your car has " << " " << getgairs() << " " << "gairs." << "\n";
}
};
/*constructor definition*/
car::car(){
cout << "Please tell us about the features of your car " << "\n";
cout << "Enter the number of wheels, your car has " << "\t";
cin >> wheel ;
cout << "Enter the number of sets, your car has " << "\t" << "\t";
cin >> sets;
cout << "Enter the number of gair-levers, your car has " << "\t";
cin >> gairlever;
cout << "Enter the number of gairs, your car has " << "\t";
cin >> gairs;
}
/*get functions*/
int car::getwheel() {
return wheel;
}
int car::getsets() {