Hello, I have a question about the code below
// Checks the vertex a
if (this.a != ((Triangle)o).a)
{
return false;
}
So In a method called Triangle i declared an instance variable like this:
private java.awt.Point a
What I think this code is doing is that this.a is comparing its point value (a.x and a.y) and checking to see if they are equal to that of the o Triangle point (o.a.x and o.a.y) is my interpretation correct?