title: Calling other classes from Main in C#
body: <p>Have two questions assigned for homework, both of the same form, so I'll post the first one:</p>
  
  <p>"Create  an  Employee  class.  Items  to  include  as  data  members  are
  employee number, name, date of hire, job description, department, and
  monthly salary. The class is often used to display an alphabetical listing of all employees. Include appropriate constructors and properties. Override the
  ToString ( ) method to return all data members. Create a second class
  to test your Employee class."</p>
  
  <p>I've created an Employee class with the proper variables, properties, and constructors, but am having trouble "testing" it through a second class. The code I have written runs without errors, but doesn't display anything (presumably the goal of the testing). Where am I going wrong in the calling section?</p>
  
  <p>Employee info section:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace EmployeeProgram
  {
      public class employee
      {
          private int employeeNumber;
          private string name;
          private string hiredate;
          private int monthlySalary;
          private string description;
          private string department;
  
      public employee(int employeeNumber, string name, string dateOfHire, int monthlySalary, string description, string department)
      {
  
          this.employeeNumber = 321;
          this.name = "Alex";
          this.hiredate = "01/02/15";
          this.monthlySalary = 2500;
          this.description = "Corporate grunt";
          this.department = "Sales";
      }
  
      public int EmployeeNumber
      {
          get
          {
              return employeeNumber;
          }
          set
          {
              employeeNumber = value;
          }
      }
  
      public string Name
      {
          get
          {
              return name;
          }
          set
          {
              name = value;
          }
      }
  
      public string Hiredate
      {
          get
          {
              return hiredate;
          }
          set
          {
              hiredate = value;
          }
      }
  
      public int MonthlySalary
      {
          get
          {
              return monthlySalary;
          }
          set
          {
              monthlySalary = value;
          }
      }
      public string Department
      {
          get
          {
              return department;
          }
          set
          {
              department = value;
          }
      }
      public string Description
      {
          get
          {
              return description;
          }
          set
          {
              description = value;
          }
      }
  
      public override string ToString()
      {
          return "Employee ID: " + employeeNumber +
                 "Employee Name: " + name +
                 "Employee Hire Date: " + hiredate +
                 "Employee Monthly Salary: " + monthlySalary +
                 "Employee Description: " + description +
                 "Employee Department: " + department;
      }
  
      public void Print()
      {
          Console.WriteLine(this.ToString());
      }
  }
  </code></pre>
  
  <p>"Calling section"</p>
  
  <pre><code>namespace employee
  {
      public class employeeApp
      {
          public static void Main()
          {
              EmployeeProgram.employee Employee = new EmployeeProgram.employee(321, "Alex", "1/02/15", 2500, "Corporate grunt", "Sales");
  
          }
  
      }
  }
  </code></pre>