title: C# Runtime Error Declare a body because it is not marked abstract, extern, or partial
body: <p>Hi I'm have some trouble making this tidbit of code run, as I'm getting a runtime error for  <code>Kennel.Kennel()</code> must declare a body because it is not marked abstract, extern, or partial. Please advise and help if you can. Much appreciated.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  
  public class Kennel : IComparable&lt;Kennel&gt;
  {
      private string _name;
      private string _breed;
  
      public string Name
      {
  
          get { return _name; }
          set { _name = value; }
      }
  
      public string Breed
      {
          get { return _breed; }
          set { _breed = value; }
      }
  
      public override string ToString()
      {
          return String.Format("Name: {0}, Breed: {1}", Name, Breed);
      }
  
      public Kennel();
  
      public Kennel(string name, string breed)
      {
          this._name = name;
          this._breed = breed;
      }
  
      #region #IComparable&lt;Kennel&gt; Members
  
      public int CompareTo(Kennel other)
      {
          return other.Name.CompareTo(this.Name);
      }
  
      #endregion
  
  }
  
  
  class Run
  {
  public static void Main()
          {
              List&lt;Kennel&gt; kennels = new List&lt;Kennel&gt;();
              kennels.Add(new Kennel("Alan", "French Bulldog"));
              kennels.Add(new Kennel("Larry", "English Terrier"));
              kennels.Add(new Kennel("Moe", "Gold Retriever"));
              kennels.Add(new Kennel("Curly", "Chihuahua"));
  
              foreach (Kennel k in kennels)
              {
                  Console.WriteLine("Name: {0}, Breed: {1}", k.Name, k.Breed);
              }
  
  
              kennels.Sort();
              foreach (Kennel k in kennels)
              {
                  Console.WriteLine("Name: {0}, Breed: {1}", k.Name, k.Breed);
              }
  
  
          }
  }
  </code></pre>