Good evening everybody!
I'm learning Java right now in university and, for the most part, it's making sense. I'm struggling to understand how the implicit parameter 'this' works. Take, for example, the following block of code:
public class ShapeSquare { // private fields private double sideLength; // public methods public void setSideLength(double sideLength) { this.sideLength = sideLength; } public double getArea() { return sideLength * sideLength; } }
I'm getting more and more familiar with language, so I don't need it to be in layperson's terms, but the simpler you can make the explanation the better. Thanks in advance everyone! You'll probably hear from me lots as I continue to learn!