Using the Class Rectangle
class TestRectangle {
public static void main(String[] args){
Rectangle r = new Rectangle(0,0,100,50);
r.resize(2);
r.move(100,100);
r.print();
}
}
Previous slide
Next slide
Back to first slide
View graphic version