i havent used it in a bit and to my understanding, if a had a class member called speed, and a parameter in a setter method called speed, if i used the keyword "this" it would be referring to the parameter, so the method should be written
public void setSpeed(float speed)
{
speed = this.speed;
}
however, in the documentation for it, the example shows it the other way (which i know ive seen and used several times in the past)
public void setSpeed(float speed)
{
this.speed = speed;
}
so am i mixing up what the "this" keyword is actually referring to or is this just special syntax involved with using it for some reason?