머직타드

  • 홈
  • 태그
  • 방명록

Programming Language/JAVA 1

[JAVA] 깊은복사 & 얕은복사(clone(), Cloneable)

다음의 코드 내용에서 출력을 예상해 보세요. class Point{ public int x, y; public Point(int x, int y) { this.x = x; this.y = y; } public void changePoint(int x, int y) { this.x = y; this.y = x; } } class Rectangle implements Cloneable{ private Point upperLeft, lowerRight; public Rectangle(int x1, int y1, int x2, int y2) { upperLeft = new Point(x1, y1); lowerRight = new Point(x2, y2); } public void showRectangle() {..

Programming Language/JAVA 2022.06.11
1
더보기
프로필사진

  • 분류 전체보기
    • Programming Language
      • JAVA
      • C
      • C++
    • DataBase
    • Spring
    • Problem Solving
      • Baekjoon
      • Programmers
    • Computer Science
      • Algorithm
    • Embedded SW
    • DayLife

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바