title: How to pass a string from Class 1 to Class 2 to Class 3?
body: <p>I have 3 classes (UCourse, Student and Teacher) and each class has a unique <code>string</code> property.</p>
  
  <p>Is there a simple way I can take the <code>string</code> property from the first class <code>UCourse</code>, pass it into a 2nd class <code>Student</code>, and then pass that string plus another string from the 2nd class into a 3rd class <code>Teacher</code>?</p>
  
  <p>This is what I have so far for my 3 classes:</p>
  
  <pre><code>using System;
  
  namespace EDXonline_AssignmentFour
  {
      class Program
      {
          class UCourse
          {
              // Set the unique string for the 1st class
              private string course = "Computer Scienece";
              public string Course
              {
                  get { return course; }
              }
          }
  
          class Student
          {
              // Get the string from the 1st class
              UCourse ucourse = new UCourse();
              public string coursef1
              {
                  get { return ucourse.Course; }
              }
  
              // Set the unique string for the 2nd class
              private string name = "zach";
              public string Name
              {
                  get { return name; }
              }
          }
  
          class Teacher
          {
              Student student = new Student();
  
              private string namet = "Sally";
  
              // Get the unique string from the 2nd class
              public string namef1
              {
                  get { return student.Name; }
              }
  
              // Set the unique string for the 3rd class
              public string Namet
              {
                  get { return namet; }
              }
          }
      }
  }
  </code></pre>
  
  <p>Then, I need to create an instance of <code>Teacher</code> and by using only this instance of <code>Teacher</code>, I need to output all <code>string</code> properties from each of the 3 classes like this:</p>
  
  <pre><code>public static void Main (string [] args)
  {
      Teacher teacher = new Teacher();
      Console.WriteLine("{0} and {1} are in {2}",
      teacher.namef1, teacher.Namet /*, UCourse string from the 1st class goes here*/);
  }
  </code></pre>
  
  <p>So far that works to display the strings from the 2nd and 3rd classes, but how can I get the value of the <code>UCourse</code> string from the first class as well?</p>