SIGHTTOBLIND

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

instance variable 1

인스턴스 변수를 private으로 해야하는 이유가 뭘까

/** Class that represents a rectangle. */public class Rectangle{ private int width; private int height; private int area; public void setDimensions(int newWidth, int newHeight) { width = newWidth; height = newHeight; area = width * height; } public int getArea() { return area; }}Rectangle box = new Rectangle(); // 사각형 객체 생성 box.setD..

JAVA 2025.08.25
이전
1
다음
더보기
프로필사진

SIGHTTOBLIND

Honesty

  • 분류 전체보기 (41)
    • 솔직후기 (6)
    • 내몸사용설명서 (1)
    • 어떻게 해야하나요? (2)
    • 일상 (0)
    • APK (0)
    • JAVA (22)
    • 알고리즘 (5)

Tag

accessor, heap, 꽉끈, 대규모트래픽, hashmap, java, 내부상태 변경, 접근연산자, 컨버스척테일러1970, new연산자, GET, BridgeconstructorportalAPK, heapmemory, mutator, instance variable, BruteForce, twosum, O(N²), 참조연산자, 객체,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
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 © AXZ Corp. All rights reserved.

티스토리툴바