#include <iostream>
using namespace std;

class Car{
//private:
public:
    int number;
    int gas;
    Car(int n = 0, int g = 0){number = n; gas = g;} // Constractor
    static void showCarInfo(const Car& c);
    void show() const; // Member function
};

int main(){
    
    Car mycar(2, 4);
    Car::showCarInfo(mycar); // Okay
    mycar.show(); // Okay
    return 0;
}

void Car::showCarInfo(const Car& c){
  cout<<"The car number is "<< c.number <<endl;
  cout<<"The gas is "<< c.gas <<".\n";
}
// Member function
void Car::show() const {
  cout<<"The car number is "<< number <<endl;
  cout<<"The gas is "<< gas <<".\n";
}