객체 생성

1 개요[ | ]

creating object
객체 생성
import java.awt.Point;

public class Main {
    public static void main(String[] args) {
        Point point1 = new Point(12, 34);
        Point point2 = new Point(56, 78);

        System.out.println(point1); // java.awt.Point[x=12,y=34]
        System.out.println(point2); // java.awt.Point[x=56,y=78]
    }
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}