Re: very very noob queston
Point is a class, you can create one like above and call it whatever you want, in this case you've called it 'origin' but you could call it anything. In this case it's called origin because it holds information on where the Rectangle originates
then use anything that is public inside it like
and you can pass it around like a variable.
is called a 'constructor' method. It's inside a difference Object called Rectangle. If a method has the same name as the class it's in then it's a constructor and it means anytime you make a new version of that class, this method is called automatically. For example...
You can have many different 'constructors' in a class, this is called 'overloading' and they have to have different arguments (the bit in brackets). This is so that you can create the object in different ways.
Rectangle myRectangle; //This is my variable (memory space) for holding a copy of a rectangle
myRectangle = new Rectangle() //this is where the above method would be called, a new Rectangle is created and stored in the space 'myRectangle'
The 'move()' and 'getArea()' methods are inside the Rectangle class so they are part of it, we call them 'members of the Rectangle class' and it means they can be accessed when you have an instance (a created version) of a Rectangle, like so...
this would set 'myArea' to the area of myRectangle.
int myArea = myRectangle.getArea();