| new Rectangle( weight, height ) | ใช้สร้าง object rectangle และเก็บค่าแกน x, y ที่ 0, 0 โดยเก็บค่า ขนาดความกว้าง และความสูง ตามที่กำหนด |
|---|
method:new Rectangle ( weight, height );
return type:Rectangle
content:ใช้สร้าง object rectangle และเก็บค่าแกน x, y ที่ 0, 0 โดยเก็บค่า ขนาดความกว้าง และความสูง ตามที่กำหนด
example:Rectangle rect = new Rectangle ( 300, 300 );