Rect[] list; // rect 타입의 참조 변수
list = new Rect[5];
for(int i=0; i < list.length; i++)
list[i] = new Rect(i,i); // 배열 요소 생성
for(int i=0; i < list.length; i++)
System.out.println(i + "i번째 사각형의 면적 = " + list[i].getArea());
class Moive(
String title, driver;
static int count; // 객체의 개수를 알기 위하여
public Moive(String title, String director){
this.title = title;
this.director = title;
};