title: why does my method in class with not return any value?
body: <p>I am trying to implement an interface and use its methods, but when I create a Star object and try and use methods, they don't print anything.</p>
  <p>Fair warning, I have not been coding for months, and I'm very new to C#(about a week in) so this is horrendous.</p>
  <p>Any help on any issues in this code would be greatly appreciated</p>
  <p>The first part of my code:</p>
  <pre><code>    interface CelestialBody
      {
          string getName();
          string getType();
          List&lt;string&gt; getOrbitals();
          void addOrbitals(string Orbital);
      }
      enum CelestialBodyType { Star, Planet, Satellite }
      
      class Star : CelestialBody
      {
          private string _Name;
          private List&lt;string&gt; Planets;
          private readonly string Type = &quot;Star&quot;;
          public string getType() { return Type; } // Planet, Sun, Satellite
         
          public string Name
          {
              set
              {
                  _Name = value;
              }
  
              get
              {
                  return _Name;
              }
  
          }
          public string getName() { return _Name; }
          public List&lt;string&gt; getOrbitals() { return Planets; }
          public void addOrbitals(string NewPlanet) { Planets.Add(NewPlanet); }
  
  
  
          public Star() : this(&quot;No Name&quot;) // Sets the default value of Name
          {
          }
  
  
          public Star(string Name) : this(Name, CelestialBodyType.Star) // Set the default value of Classification
          {
          }
          //Designated Constructor
          public Star(string Name, CelestialBodyType Star)
          {
              this.Name = Name;
          }
  
      }
  
      
  }
  </code></pre>
  <p>The main part of my code</p>
  <pre><code> class Program
      {
          static void Main(string[] args)
          {
              Star star = new Star(&quot;The Sun&quot;);
  
              Console.Write(star.getName() + star.getType());
          }
      }
  }
  </code></pre>