class Student
public String name = "John Doe";
public int type = 0;
public int tutor = 2;
public Student(String n, int s, int t)
{
this.name = n;
this.type = s;
this.tutor = t;
}
}
This refers to the current class.
It is more useful when inheriting as you can call an inherited method
using this, which would have been quite hard to do if this did not
exist.
What I have done in the above example is to set attributes to
parameters.