Friday, August 27, 2010

Test one paragraph


To start with, we open the "picture" project. Next what we have to do is modify the picture class and turn the house picture into the pezant picture. We modify the objects that are on the workbench. For example – change their sizes, their horizontal placement (x-position) by moving horizontally, their vertical placement (y-position) by moving vertically, color etc. In other words, we change their state by invoking methods on them. We receive result which in other words is receiving information about the objects after we have invoked methods. To create the rectangle, we create another class called “box”. This class differs from class square. In class square there is only one size whereas in box, we have two dimensions – width and height. We copy the source codes from class square into class box. The constructor for box takes two parameters (like parenthesis) that we used to assign the initial values for width and height. We put the signature in order to invoke the methods. For example - public Box(int h, int w), where “int” is a data type and the whole part between the parenthesis is the required information or the signature. In box class, we created many instances in order to make the hands and legs of the pezant.