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