The
this
keyword refers to the current instance of the type (e.g.
Circle
).
However, in this case, its use is superfluous. It is NOT necessary to differentiate the fields (
pi
and
Rad
) that it qualifies.
Consider if you had re-named the class-level field
Rad
as
Radius
. In that case, within the constructor for the circle, there would be two things named
Radius
: the parameter to the constructor and the class-level field. So, in that case, the following use of
this
would be necessary to differentiate between them:
public Circle (int Radius)
{
this.Radius = Radius;
}