title: "Invalid conversion from 'char' to 'char*'
body: <p>I recently started learning C++ and I'm having trouble with my constructor. Simple example of my class file</p>
  
  <pre><code>class Test {
  
  private:
  
      char *type;
  
  public:
  
      Test(const char *type); //this is my constructor
  
  };
  </code></pre>
  
  <p>Now I have a problem when I'm trying to implement the constructor. </p>
  
  <pre><code>Test::Test(const char *type){
  
  this-&gt; type = *type;
  
  }
  </code></pre>
  
  <p>I get the error: "Invalid conversion from 'char' to 'char*'. Now I searched this site and the web for solutions. But didn't find anything for my specific problem. I can imagine that the solution is quite simple, but for the love of me, I can't figure it out. </p>