title: Why do I get an error instantiating an interface?
body: <p>I have a class and an interface, and when I try to instantiate the interface, I get an error:</p>
  
  <blockquote>
    <p>Cannot create an instance of the abstract class or interface</p>
  </blockquote>
  
  <p>My code is below:</p>
  
  <pre><code>namespace MyNamespace
  {
      public interface IUser
      {
          int Property1 { get; set; }
          string Property2 { get; set; }
          string Property3 { get; set; }
          void GetUser();
      }
  
      public class User : IUser
      {
          public int Property1 { get; set; }
          public string Property2 { get; set; }
          public string Property3 { get; set; }
  
          public void GetUser()
          {
             //some logic here...... 
          }
  
      }
  }
  </code></pre>
  
  <p>When I try to instantiate <code>IUser user = new IUser();</code> I get an error:</p>
  
  <blockquote>
    <p>Cannot create an instance of the abstract class or interface</p>
  </blockquote>
  
  <p>What am I doing wrong here?</p>