As per my understanding, in the OOP paradigm, the class is the blueprint of the objects that are created as per need. In context to the definition below from the Java docs which exactly is the current object that the this keyword is a reference to in the following snippet? The constructor that is being called is of the Point class. I also read this post which says that classes are not objects. What am I missing here?
public class Point {
public int x = 0;
public int y = 0;
//constructor
public Point(int x, int y) {
this.x = x;
this.y = y;
}}
Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.