Answer:
The correct answer for the following question is this reference.
Step-by-step explanation:
this reference is used for pointing the current object or parameter.
Following is the exemple of this reference in java language -
class test // class
{
int x,y; // data member
test(int x, int y) // constructor
{
this.a = x; // pointing the object
this.b = y; // pointing the object
}
public static void main(String args[]) // main method
{
test ob = new test(10, 20); // passing value and create instance
ob.display(); // calling function
}
}
- By using the this object we can passed to any object of the non-static class method.
- Magic number, literal constant and reference are not used for pointing the reference of an object.