title: How to deal with base class and pointer variable in argument
body: <p>I am trying to deal with abstract class argument, trying to figure out what to do,  after running this code below getting the error : "In function 'int    main()': 67:12: error: expected primary-expression before ')' token"</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  class base1 {
  protected:
  int i;
  public:
  
  base1(int x) {
  i=x;
  cout &lt;&lt; "Constructing base1\n";
  }
  virtual ~base1() {
  cout &lt;&lt; "Destructing base1\n";
  }
  };
  
  class derived: public base1 {
  int j;
  public:
  derived(int x, int y): base1(y){
  j=x;
  cout &lt;&lt; "Constructing derived\n";
  }
  
  ~derived() {
  cout &lt;&lt; "Destructing derived\n";
  }
  void show() {
  cout &lt;&lt; i &lt;&lt; " " &lt;&lt; j &lt;&lt; " "  &lt;&lt; "\n";
  }
  };
  
  class Isolver
  {
  public :
  
  Isolver(){};
  
  virtual ~ Isolver(){};
  
  virtual void x(base1* pboard)=0;
  
  };
  
  
  class vr:public Isolver
  
  {
  void x(base1* pboard)
  
  
  {  
  
  cout &lt;&lt; "My virtual fun and base constructor are not working\n"&lt;&lt;endl;
  
  };
  
  };
  
  
  int main()
  {
  vr obj;
  obj. x(10, );
  
  derived ob(3,4);
  
  ob.show();
  
  return 0;
  }
  </code></pre>