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