Quote Originally Posted by sweet girl View Post
Java Code:

    public void setYearsModel(int yearsModel) 
    {  this.yearsModel = yearsModel;      }
}
is this a Message expression ?
Hard to say. I've never heard of a Message expression. Surely your professor covered it?

Quote Originally Posted by sweet girl View Post
the accessor method :


Java Code:
   public int getYearsModel() 
    {  return yearsModel;  }
:confused:
Yup. Anything that gets a value from a class without doing anything to the class itself is an accessor method.