title: Using getter and setter methods inside a class in my main class
body: <p>I have to write a program that writes a class called "Employee" that holds information about an employees name and salary. Then I need to use that information inside my main class to set the employee information then get the employee information and print it to the screen, but I have no idea how to access my information inside my "Employee" class to use in my "main" class. Here's what I have in my "Employee" class.</p>
  
  <pre><code>package classwork6_1;
  
  public class Employee {
  
      private String name;
      private float salary;
  
      public String getName()  {        
          return name;        
      }
  
      public float getSalary() {          
          return salary;     
      }
  
      public void setName(String name){
       this.name = name;          
      }
  
      public void setSalary(float salary){
          this.salary = salary;        
      }     
  }
  </code></pre>