0

I have a class like below with static function

class Car: public Vehicle
{

  public:
     static int b;
     Car(int x)
     {

         cout<<"This is Car"<<x<<endl;
      }
     static char* x1(int x)
      {
        b=x;
        return (char*)"done";
      }
}

I like to call the x1 static function and pass value and get the return value. How to do it?

user786
  • 3,502
  • 3
  • 28
  • 56

0 Answers0