The 'this' keyword Example: public class Point { private int x, y;
{"Image DocumentName": "The \u2018this\u2019 keyword Example: public class Point { private int x, y;", "Image ImageDescription": "In Java \u2018this\u2019 is a reference to myself (in C++ it is a pointer\u2026) Example: public class Point { private int x, y; public Point(int x, int y) { this.x = x; this.y = y; } The \u2018this\u2019 keyword is also used to call another constructor of the same class \u2013 we will see that later.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}